[ROOT] Re: axis limits

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Sep 10 2002 - 06:49:25 MEST


Hi Chritian,
Last night, I answered a similar question to roottalk. Please see:
http://root.cern.ch/root/roottalk/roottalk02/3803.html
http://root.cern.ch/root/roottalk/roottalk02/3804.html

Rene Brun

On Tue, 10 Sep 2002, Christian Hansen wrote:

> 
> Hi Rooters,
> 
> I'm trying to controle the limits of the axis of
> a graph by the following commands;
> 
> graph = new TGraph(vectorIndex,etaVector,radLenVector);
> graph->Draw("AC");
> graph->GetYaxis()->SetLimits(0.0,1.0);
> graph->GetXaxis()->SetLimits(0.0,4.0);
> graph->Draw("AC");	
> 
> but it's very strange since it works for the X-axis
> but NOT for the Y-axis... How could this be?
> 
> I've also tried to controle the axis limits by
> 
> TCanvas *radlVsEtaCanvas = new TCanvas("radlVsEta", "radlVsEta",565,5,699,699);
> radlVsEtaCanvas->RangeAxis(0.0,0.0,1.0,4.0);
> 
> but this did not work at all.
> 
> Would you have a suggestion how to solve this?
> 
> Cheers
> / Christian Hansen
> 
> ===============================================
> 161-01-016            Office: +41-(0)22-7677598
> CERN              
> CH-1211 Geneve 23
> Switzerland
> -----------------------------------------------
> Mobile    : +41-(0)79-7742530
> Home Page : http://welcome.to/Christian_Hansen
>             http://cern.ch/Christian.Hansen
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:09 MET