Re: [ROOT] Superimposing two histograms

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Apr 02 2003 - 08:14:09 MEST


Hi Tania,

See TPad::RedrawAxis at:

http://root.cern.ch/root/htmldoc/TPad.html#TPad:RedrawAxis

Rene Brun

On Tue, 1 Apr 
2003, Tania Moulik wrote:

> Hi,
>   I am using root version 3.03 on a Linux machine.
> I am trying to superimpose two histograms. Both 
> are normalised to 1 but one has a ymax much larger
> than the other. So I am using first a frame to 
> define the coordinates so both histograms are within
> the frame. So I am doing:
> c1->DrawFrame(0.0,0.0,2.0,0.1);
> hist1->SetFillColor(5);
> hist1->Draw("SAME")
> hist2->Draw("SAMEE0");
> The problem is when I superimpose hist1 on the frame,
> it blots out the tickmarks. Can someone suggest 
> a workaround?
> 
> Thanks,
> Tania.
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET