Axis ranges

From: Bosko Ivanisevic (ivanisev@sezampro.yu)
Date: Fri Dec 12 1997 - 06:51:25 MET


Hi,

I have a problem defining axis ranges. For example if I try to change lower and upper bound of x axis in tutorial file graph.c using 

    gr->GetXaxis()->SetLimits(-2,2)
    c1->Modified();
    c1->Update();

nothing happens. Also, I tried to use DrawPanel option but it doesn't show for TGraph object. On the other hand changing the axis ranges for TH1 objects is very simple through slider on DrawPanel, but I couldn't do it in macro.

Is there any way to change the range of x axis for TGraph object in macro?

Bosko Ivanisevic



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:22 MET