Re: finding the right axes for several graphs

Ulrich Jost (jost@evalo1.ific.uv.es)
Fri, 23 Apr 1999 09:48:40 +0200 (CET)


Or just a drawing option similar to "a", eg "if plotting on existing
histogram, enlarge histogram if necessary so that this graph fits in", in
other words, take the union of the histogram size and "a" option. That
should be easy to implement.

Ulrich

On Thu, 22 Apr 1999, Rene Brun wrote:

> Ulrich Jost wrote:
> >
> > Hi,
> >
> > I'd like to plot several, beforehand unknown graphs in the same plot. Is
> > there an easy way to find the right minima and maxima of the plot each
> > time a new graph is added, so that all graphs fit in the plot? Or do I
> > have to find them 'by hand'?
> >
> > Thanks, Ulrich
>
> Hi Ulrich,
> Currently you have to loop yourself on your list of TGraph objects,
> computing the min/max.
> I agree that it would be nice to have a TGraphList class (just a TList
> of TGraph,TGraphErrors, etc) and do list->Draw().
> One could also have a TH1List doing the same.
> May be there are better ideas around?
>
> Rene Brun
>