Again: Set axis Titles

Matthias Vitt (vitt@imt.fzk.de)
Wed, 19 Feb 1997 09:04:55 +0100


Hi,

Setting the axis title via the right mouse button is one thing. But if I
have a TGraph object say "gr", the command

gr->GetHistogram->SetXTitle("X axis");

produces an error message:

illegal pointer to class object GetHistogram()

What is wrong here ? Using only "gr->GetHistogram();" works but has no
effect.

Is it possible to use an histogram instead of the graph. Can you make
fits using (x,y) pairs within a histogram or is it only possible to fit
one set of values that is spread equally over a discrete number of
channels (like in the tutorial-file multifit.C)? Any suggestions?

Oh, a last one. there is a howto about using Postscript. When I use this
and I try to change the size of the resulting picture via "Range(8,8);"
the code doesn't produce a picture that is 8 cm by 8 cm but a picture
that has stil the default size.

Any help is appreciated

bye,
Mats

P.S: Congratulations for "root", I really like it. Finally one can
create plots whithout spending hours with a "point an click" interface.