RE: Getting rid of vertical error bars?

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Fri, 30 Nov 2007 10:51:34 +0100


I do not see any attached .C file. Can you send it ? Thanks,

Olivier Couet

-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Manuel Mussini
Sent: Friday, November 30, 2007 10:48 AM To: roottalk_at_lxbuild091.cern.ch
Subject: RE: [ROOT] Getting rid of vertical error bars?

I agree with you!
But something strage happens if I plot other histos with the "SAME" option (you
can use the attached .C)!
I'm using ROOT 5.17.02 on Windows!
If I do this in a "big" TCanvas:

inclusivePtK0sFoundsPerc40NewErr      ->Draw("HIST P0");
inclusivePtK0sFakesPerc40NewErr       ->Draw("SAME HIST P0");
inclusivePtK0sContaminatedPerc40NewErr->Draw("SAME HIST P0");
inclusivePtK0sEffi40NewErr            ->Draw("SAME HIST P0");
inclusivePtK0sAcce40NewErr            ->Draw("SAME HIST P0");

it's fine!
Now ... if I try to resize the Pad (let's say ... with the mouse I drag the
Pad's low-right corner to the center of the canvas) histos are now drawn in a
different way! If you try to zoom the X axis (e.g in my file from 0 to 2 Gev/c)
only the first histo in the list ("Founds") is drawn with "HIST P0"!

How can I fix this?

In addition to that ... when I save a TCanvas as a ".C" I always experience a
problem with colors in TLegend! As you can see in my file, efficiency is drawn
in cyan (which is correct) but in the legend it's green as the first entry!

Bye...

> -----Original Message-----
> From: owner-roottalk_at_lxbuild091.cern.ch [mailto:owner-
> roottalk_at_lxbuild091.cern.ch] On Behalf Of Rene Brun
> Sent: Friday, November 30, 2007 09:23
> To: Deepak Kar
> Cc: roottalk_at_lxbuild091.cern.ch
> Subject: Re: [ROOT] Getting rid of vertical error bars?
>
> Simply do
> hist.Draw("hist p");
>
> Rene Brun
>
> Deepak Kar wrote:
> > Hi,
> >
> > After dividing two histograms, I am ending up with huge vertical
error
> > bars in the resulting one, which although are right, for the purpose
> > of my analysis, I just need the resulting points. So is there a way
of
> > getting rid of the vertical error bars altogether? (Or some trick to
> > suppress them!)
> > Like I can get rid of the horizontal ones by, gStyle->SetErrorX(d0)
;
> > with d0=0;
> >
> > "Hist" option doesnt help me, since it draws the outline, whereas I
> > just need the points.
> >
> > Thanks so much,
> > Deepak
> >
> >
Received on Fri Nov 30 2007 - 10:51:54 CET

This archive was generated by hypermail 2.2.0 : Fri Nov 30 2007 - 17:50:02 CET