Setting y axis limit TGraph

Hi,

It is a simple question, but I have not found any immediate way to do this.

I am superimposing several graphs in one canvas. The axis range sets itself to the first graph, and so excludes the others which are out of that range.

How do I set the yaxis range or limits by hand? (Have not fully understood difference btw range and limit)

For xaxis I can do
xaxis=graph->GetXaxis()
xaxis->SetLimit(0,1)

but this does not work for the y-axis…

Appreciate help.

Cheers
Maiken

Hi Maiken,

Have a look at TMultiGraph

root.cern.ch/root/html/TMultiGraph.html

Set the y axis range with SetMinimum and SetMaximum

Eddy