A.Dietz@mpi-hd.mpg.de wrote:
>Hi,
>
>I made
>
>
>
>>tree->Draw(...)
>>
>>
>
>and want to set axis labels in this plot. How can I do that?
>
>Alexander Dietz
>
>
>
>
Hi Alexander
If the result of your tree->Draw(...) is e.g. a 1D histogram, you can do
TH1F *histo = (TH1F*)gROOT->FindObject("htemp")
histo->GetXaxis()->SetTitle("My x-axis")
histo->GetYaxis()->SetTitle("My y-axis")
gPad->Update()
etc.
Hope this helps
John
--
John D. Frankland <mailto:frankland@ganil.fr>
Beam Coordinator
GANIL
B.P. 55027
14076 CAEN Cedex 05
*tel:* +33 (0)231454628
*fax:* +33 (0)231454665
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET