aligning histograms

From: Mario Kadastik <mario.kadastik_at_cern.ch>
Date: Wed, 17 Nov 2010 19:09:13 +0100


Hello,

I have tried to produce plots where I read from various root files the same histogram, change the color, add them to a stack and then take the same histogram from yet another root file and after drawing the stack draw the final histogram with E1same options so that it overlays the previous histograms. However the two almost never overlap perfectly. The axis are slightly out of sync causing the text to be double, the axis ranges sometimes don't match etc.

So I was curious wether there is any decent way to make sure such plotting happens with axes synchronized. As the underlying histograms are the same I know that the bins overlap, but the drawing almost never does. Or let's ask it this way, is there some nice example on how to draw a MC vs data plot where the MC is made up of N samples all stacked together.

Thanks,

Mario Kadastik, PhD
Researcher

---
  "Physics is like sex, sure it may have practical reasons, but that's not why we do it" 
     -- Richard P. Feynman
Received on Wed Nov 17 2010 - 19:09:22 CET

This archive was generated by hypermail 2.2.0 : Thu Nov 18 2010 - 11:50:02 CET