Hi Imran, Instead of multiGr->GetYaxis()->SetLimits(-2.0, +2.0); do multiGr->SetMaximum(2); multiGr->SetMinimum(-2); Rene Brun On Wed, 31 Jul 2002, Imran Younus wrote: > > 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