Re: [ROOT] Superimposing two histograms

From: Tania Moulik (tmoulik@fnal.gov)
Date: Wed Apr 02 2003 - 08:41:00 MEST


Hi Rene,
   Thanks. Thats working. So, now I do:

c1->DrawFrame(0.0,0.0,2.0,0.1);
hist1->SetFillColor(5);
hist1->Draw("SAME");
hist1->Draw("sameaxis");
hist2->Draw("SAMEE0");

Tania.

Rene Brun wrote:

> 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.
> >

--
Tania Moulik                Ph. (0)1-630-840-3137 (Off.)
MS 318, Fermilab Box 500        (0)1-630-548-5892 (Res.)
Batavia, IL-60510,U.S.A.    Fax (0)1-630-840-2968



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