RE: Getting rid of vertical error bars?

From: Manuel Mussini <Manuel.Mussini_at_bo.infn.it>
Date: Fri, 30 Nov 2007 14:38:00 +0100


Thanks! Now it works!

Bye...

> -----Original Message-----
> From: Olivier Couet [mailto:Olivier.Couet_at_cern.ch]
> Sent: Friday, November 30, 2007 14:30
> To: Manuel Mussini; roottalk_at_lxbuild091.cern.ch
> Subject: RE: [ROOT] Getting rid of vertical error bars?
>
> Hi Manuel,
>
> When the histogram bin size is (much) smaller than a pixel, the drawing
> automatically turns, for speed reason, into "low resolution". To force
> to stay in "high resolution"(see TGraph help) you should use the option
> "9". So in your macro you should change the drawing option "HIST P0" to
> "HIST P9".
>
> Cheers, Olivier Couet
>
> -----Original Message-----
> From: Manuel Mussini [mailto:Manuel.Mussini_at_bo.infn.it]
> Sent: Friday, November 30, 2007 11:26 AM
> To: Olivier Couet; roottalk_at_lxbuild091.cern.ch
> Subject: RE: [ROOT] Getting rid of vertical error bars?
>
> There should be problems with my mail server!
> I've sent it after few seconds!
> Let's try again!
>
> Bye...
>
> > -----Original Message-----
> > From: Olivier Couet [mailto:Olivier.Couet_at_cern.ch]
> > Sent: Friday, November 30, 2007 10:52
> > To: Manuel Mussini; roottalk_at_lxbuild091.cern.ch
> > Subject: RE: [ROOT] Getting rid of vertical error bars?
> >
> > 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 - 14:38:30 CET

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