Hi Mike, I assume that you use the option "a" when drawing the graph. In this case the graph is drawn via an intermediate histogram. You can set the y scale via mygraph->GetHistogram()->SetMaximum(mymaximum); mygraph->GetHistogram()->SetMinimum(myMinimum); Note that you can also change the scale interactively with the left button of the mouse. Rene Brun Mike Eads wrote: > > Is there a way to change the y-axis scale on a graph? In particular, can > the limits be changed either when creating the graph or after the graph > has been created? I have tried TAxis::SetRange() and TAxis::SetLimits() > both in the canvas and on the command line and neither command seems to > have any effect. > > Mike Eads
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:56 MET