[ROOT] how to change Yaxis limits for TMultiGraph?

From: Imran Younus (imran@physics.syr.edu)
Date: Wed Jul 31 2002 - 15:52:09 MEST


I would like to change the Yaxis limits of a TMultiGraph which is set 
automatically. (Actually, I'm trying to 'increase' the limits, e.g., 
rather than having -1.0 to +1.0, I would like to have -2.0 to +2.0 ). I 
tried to do the following:

multiGr->Draw("AP"); // this draws the graph with Y axis limits -1.0,+1.0
multiGr->GetYaxis()->SetLimits(-2.0, +2.0);
multiGr->Draw("A");

but, seemingly, this does not have ANY effect. I'm using ver. 3.02/07. 
on Linux 7.2.
Thanks,

Imran



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:02 MET