Re: [ROOT] Superimpose histograms

From: Rene Brun (brun@pcbrun.cern.ch)
Date: Mon Sep 13 2004 - 14:40:12 MEST


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