Hi, Easiest is to do a gStyle->SetOptTitle(0); BEFORE you plot your histograms. Please note that a TTree::Draw("x:y") creates a plot where the real (x,y) pairs are depicted. Doing a TTree::Draw("x:y>>h2") produces a 2-dimensional histogram, binned in a certain default way. When the histgram is drawn, random points are created to reflect the number of entries in each bin, this is probably what causes your 'clustering'. One more thing, if gPad->Update doesn't work, you might have to do a gPad->Modified() first... (I have also tried to figure out why, but haven't found a definite answer...) Regards, Marco On Tue, 16 Nov 1999, Selim Issever wrote: > Hi all,.. > > and some more questions/observations from me,.. I have a TTree t and do the > following: > > === 1 === > subspace transmission: t->Draw("ia") > -> plots a histo and a title TPaveText > > I want to remove the title pavetext: > subspace transmission: htemp->SetTitle("") > -> this works,.. > > If I do the same for 2d plots: > subspace transmission: t->Draw("ia:ia") > -> I get my 2d plot + title > subspace transmission: htemp->SetTitle("") > -> title is removed,.. but my plot too?!? > > is this intentional? > How does htemp compute the histogram borders? What is the standart way for me > to get access to the same information? plot the tree into a dummy histogram? > > === 2 === > subspace transmission: t->Draw("ia:time>>h2") > -> plot + title > subspace transmission: h2->SetTitle("") > -> nothing happens > subspace transmission: h2->Draw() > -> title is gone, but the plot looks "clustered" > > === 3 === > subspace transmission: draw t ia:time > -> again draw the stuff > subspace transmission: ((TPaveText*)gPad->GetPrimitive("title")) > (class TPaveText*)0xac9e80 > subspace transmission: delete ((TPaveText*)gPad->GetPrimitive("title")) > -> title still there > subspace transmission: gPad->Update() > -> no change,.. > > > I somehow couldnt find an elegant solution to get rid of the title,.. > Thanks for your patience! > > Best Wishes, > Selim > > > > -- > Selim Issever | Tel: 040 8998-2843 +- If it doesn't work, force it. > DESY-F15 | Fax: 040 8998-4033 +- If it breaks, ------- > Notkestr. 85 | selim.issever@desy.de +- it needed replacing anyway. - > 22603 Hamburg/Germany | http://www.physik.uni-dortmund.de/~issevers >
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET