Re: finding the right axes for several graphs
Rene Brun (Rene.Brun@cern.ch)
Thu, 22 Apr 1999 14:42:52 +0000
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