Hi Peter, TMultiGraph computes the axis range only at drawing time. The histogram used to paint the graph is only created when TMultiGraph::Paint is called. There are currently no functions in TMultiGraph returning the min/max in x and y. The axis limits depend on many parameters, eg if you draw in lin or log scales, if one or more graphs are TGraphErrors, etc. Rene Brun On Tue, 5 Oct 2004, Peter Shanahan wrote: > Dear ROOTers, > > I would like to get information about the axis range for a > TMultiGraph before drawing it. How can I get around the fact that > the axis limits aren't computed prior to drawing it? Do I just > have to loop over the TGraphs it owns? > > Many thanks, > > Peter Shanahan > ======================================================================= > Fermilab MS-220 Phone: (+1) 630 840 8378 > P.O. Box 500 Fax: (+1) 630 840 6039 > Batavia, IL 60510 USA >
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET