[ROOT] Superimpose histograms

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Mon Sep 13 2004 - 13:03:37 MEST


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