Text about binwidth below xaxis
Tadeusz Pytlos (pytlos@fizwe5.uni.lodz.pl)
Mon, 23 Feb 1998 17:04:29 +0100 (CET)
Hello Rooters,
Is any easy way to place text below xaxis? Something like SetXTitle,
but in the middle. I created histogram with methods
...
TH1F *h1 = new TH1F("h1","Example",100,3,8);
h1.SetLineWidth(2);
h1->Fill(E);
h1.SetXTitle("E[MeV]");
h1.SetYTitle("N");
h1.SetMinimum(1);
h1.Draw();
...
and I would like to insert below xaxis in the middle information
about the width of bin of my histogram, for example text: dE=0.1 MeV,
where 0.1 wil be automaticly changed, when I change nbins or range.
I'm not sure if TPaveLabel or TText is the best way to use in this
case, because I want to use this mechanism in many macros without
changing coordinates.
Thanks in advance
Tadeusz
--
Tadeusz Pytlos
mailto:pytlos@fizwe5.uni.lodz.pl
Lodz, Poland