Re: [ROOT] axis limits

From: Brett Viren (bv@bnl.gov)
Date: Tue Sep 10 2002 - 15:24:11 MEST


Christian Hansen writes:
 > 
 > I'm trying to controle the limits of the axis of
 > a graph by the following commands;
 > 
 > graph = new TGraph(vectorIndex,etaVector,radLenVector);
 > graph->Draw("AC");
 > graph->GetYaxis()->SetLimits(0.0,1.0);
 > graph->GetXaxis()->SetLimits(0.0,4.0);
 > graph->Draw("AC");	
 > 
 > but it's very strange since it works for the X-axis
 > but NOT for the Y-axis... How could this be?

Heh, so I'm not the only one....

As reported yesterday, use TGraph::Set{Min,Max}imum() for Y axis.

-Brett.



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