Re: [ROOT] questions on histogram errors

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Sep 18 2003 - 10:07:50 MEST


Hi Stephane,

Stephane Plaszczynski wrote:
> 
> hello,
> 
> In encounter rthe follwoing problems with error bars on TH1F:
> 
> 1/I put some errors to one histo in my analysis.
> Now I can't get rid of them when plotting it!
> h1->Draw("P") still draws the error bars...Is there a way of drawing
> only the points values?

do: h1->Draw("hist p"); 
see:http://root.cern.ch/root/htmldoc/THistPainter.html#THistPainter:Paint
and look at "list of options"

> 
> 2/I have a ntuple with "x y sigma_y". Is there a direct way to plot
> y vs x with sigma_y errors on y  (other than MakeClass...)?

This is a profile histogram. do
  tuple->Draw("y:x","',"profs");
see doc of TTree::Draw

> 
> 3/I plot some histos on my canvas.
> I then want to add some points from a tuple.
> when I incoporate
> "tuple->Draw("y:x","",""same");
> to my script I don't see any oupput (even with a c1->Update)
> 
> if I do it interactively it works...
> (I am using Root3.05)

I need to see your code, in particular your main program.
Do you create a TApplication? Please mimic the root main program.

Rene Brun

> 
> thanks
> 
> stephane



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