Hi Selim,
Your mail was already answered concerning your question; Why you get
a clustered plot?
Concerning the removing of the title, you have 3 possibilities:
- in the canvas option menu, select the option "no histogram title"
- execute gStyle->SetOptTitle(kFALSE);
- htemp->SetTitle();
You were using the third option with no success. This was a problem in
the way
we iterate on the list of primitives in TPad::PaintModified.
When the htemp object was painted, it deleted the next object (title) in
the
list and the iterator was confused.
I have modified the iterator procedure and the problem is now fixed.
Thanks for reporting this problem.
Rene Brun
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