How to set axis range in my code?


ROOT Version: 6.28
Platform: win10
Compiler: visual c++
How to set axis range in my code?


Hi,
just before drawing in the canvas

graph->GetYaxis()->SetRangeUser(ymni,ymax)

And similarly on x axis

Best,
Stefano

1 Like

See also this HowTo: How to set ranges on axis?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.