Re: [ROOT] X and Y axis not handled consistently in TGraph.

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Sep 09 2002 - 21:42:26 MEST


Hi Brett,

I agree that this should be better documented.
There are special cases for all the objects like histograms, graphs and
functions that can set the pad range automatically.
For all other objects, the pad range must be set explicitly via
TPad::Range or TPad::DrawFrame.

Rene Brun

On Mon, 9 Sep 2002, Brett Viren wrote:

> Thanks Rene,
> 
> TGraph::Set{Min,Max}imum() is what I was missing.
> 
> One thing I didn't mention is I want to dynamically change these
> ranges during run time.  In this case the use of TCanvas::DrawFrame()
> prevents this.  Calling it subsequent times will appears to erase the
> TGraph.  Likewise, calling TGraph::Set{Min,Max}imum() after using
> DrawFrame() appears to be ineffectual.
> 
> I find there are many many ways to control the range of things drawn
> into TPads and that the policy which governs this ranging is
> inconsistent and unclear.  
> 
> Sometimes one must tell the TPad to change its range and sometimes one
> must tell the Histogram, Graph or Axis to do it.  It would be nice to
> have all this policy collected in one spot, for example, one section
> in the manual or as a HOWTO.
> 
> Thanks again,
> -Brett.
> 



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