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

From: Brett Viren (bv@bnl.gov)
Date: Mon Sep 09 2002 - 21:36:52 MEST


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