Re: [ROOT] Superimpose histograms

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Tue Sep 14 2004 - 11:04:23 MEST


Hi Rene,

thanks for the easy example... Is there any chance to still have access 
to the both histograms (and axis-scaling) with the mouse context menu?

Thanks,
Thomas.

Rene Brun wrote:
> Thomas,
> 
> In attachement, you will find an example of a transparent pad.
> This example is now in CVS in the tutorials directory.
> 
> Rene Brun
> 
> Thomas Bretz wrote:
> 
>>Hi Rene,
>>
>>I don't want to copy the histogramm... Where can I find information
>>about 'transparent pads'?
>>
>>Thomas.
>>
>>Rene Brun wrote:
>>
>>>Hi Thomas,
>>>
>>>Use DrawCopy or transparent pads
>>>
>>>Rene Brun
>>>
>>>On Mon, 13 Sep 2004, Thomas Bretz wrote:
>>>
>>>
>>>
>>>>Hi,
>>>>
>>>>I had a look at
>>>>http://root.cern.ch/root/html/examples/twoscales.C.html
>>>>
>>>>but this solution has a problem. I'm superimposing two histograms, but
>>>>therefor I have to change the units of one of the histograms (Scale()).
>>>>But I still want to use the histogram afterwards.
>>>>
>>>>The problem is, that my program looks like this:
>>>>0) Fill Data into histograms
>>>>1) Draw histogram1
>>>>2) Superimpose histogram2
>>>>3) Do something with the histogram...
>>>>4) goto 0)
>>>>
>>>>But this doen't easily allow changing the scale of the histogram.
>>>>Another solution would be to draw a copy of the contents of the
>>>>histogram, but this takes a lot of time which I don't have...
>>>>
>>>>Is ther e any other solution?
>>>>
>>>>Thomas.
>>>>
>>>
>>>



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET