Re: [ROOT] Problems with axis titles in TH2F (SURF3)

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Apr 17 2002 - 12:51:20 MEST


Thomas,

Your original message was unclear. Do you see the problem
with 3.02/07 or not? I repeat that I do not see a problem
with your example. Please iterate with me on this point and not roottalk.

Rene Brun

Thomas Bretz wrote:
> 
> Hi Rene,
> 
> > What is the problem?
> 
> Ok, didn't make my point clear, I'm sorry:
> There are no axis titles at all. The axis titles (in the example below)
> are completely missing.
> 
> Thomas.
> 
> > > I tried to display axis titles for the three axis' in a TH2F
> > > (Draw("SURF3")).
> > >
> > > Before I switched to 3.02/07 a code like:
> > >
> > > TH2F *hist=new TH2F("name", "title", 2, 0, 1, 2, 0, 1);
> > >
> > > hist->SetXTitle("Title X");
> > > hist->SetYTitle("Title Y");
> > > hist->SetZTitle("Title Z");
> > >
> > > hist->Fill(0.1, 0.1);
> > > hist->Fill(0.2, 0.2);
> > > hist->Fill(0.3, 0.3);
> > >
> > > hist->Draw();



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:50 MET