Re: [ROOT] TMultipleGraph ?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Oct 12 2000 - 17:24:04 MEST


Hi Anton,
See class TMultiGraph at URL:

http://root.cern.ch/root/htmldoc/TMultiGraph.html

Code also available in CVS

Rene Brun


KOSU_FOKIN@garbo.lucas.lu.se wrote:
> 
> Hi Rene,
> 
> I am frequently drawing one, two or more graphs
> on the same plot using TH2F as an underlying histogram.
> To fit all the graphs (with some margines) into
> the histogram I have to use the folowing procedure
> 
> - find min/max of all graphs
> - book or rebin the histogram to fit min max
> - draw hist
> - draw graphs
> 
> I also need to apply this procedure every time one
> of the graphs changes to fit it into the histogram.
> 
> Could you make this procedure a kind of automatic?
> Why should a user deal with booking a histogram,
> finding/setting min and max, number of bins, etc.
> 
> A kind of normal way to do it is use somethig like
> 
> TMultipleGraph *MultipleGraph = new TMultipleGraph(Graph1);
> 
> MultipleGraph->Draw();
> 
> MultipleGraph->AddGraph(Graph2);
> 
> etc.
> 
> Or I am missing something as usual?:))
> 
> Regards,
> Anton



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:35 MET