Axis ranges

Bosko Ivanisevic (ivanisev@sezampro.yu)
Fri, 12 Dec 1997 06:51:25 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_001B_01BD06CA.5DD2ABD0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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=20

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

------=_NextPart_000_001B_01BD06CA.5DD2ABD0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">

Hi,
 
I have a problem defining axis = ranges. For=20 example if I try to change lower and upper bound of x axis in tutorial = file=20 graph.c using
 
   =20 gr->GetXaxis()->SetLimits(-2,2)
   =20 c1->Modified();
    = c1->Update();
 
nothing happens. Also, I tried to = use DrawPanel=20 option but it doesn't show for TGraph object. On the other hand changing = the=20 axis ranges for TH1 objects is very simple through slider on DrawPanel, = but I=20 couldn't do it in macro.
 
Is there any way to change the range = of x axis=20 for TGraph object in macro?
 
Bosko = Ivanisevic
------=_NextPart_000_001B_01BD06CA.5DD2ABD0--