Re: [ROOT] Draw option ...

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Mar 15 2004 - 09:18:09 MET


I am not sure to understand your request. I assume that you want to use the
option "e2" for drawing error bars.
I suggest to keep the marker style=1 and set the histogram fillcolor to
1,2,etc.
If this does not work, please send a short script explaining your problem and
request.

Rene Brun

zaldy wrote:
> 
> Dear Rooters,
> 
> I just wanted to draw a point from the TH1F object.
> I want it to be a box such that the error bars represents the width and
> length of the box. This is very helpful if we want to compare a MonteCarlo
> Data and a true data.
> 
> I tried something like this:
> 
>  TH1F * h = new TH1F(....);
>  .....
>  fill the histogram
>  ......
>  h->SetMarkerStyle(25);
>  h->Draw("e2");
> 
> There is actually a box on a coordinate but it does not represent the
> errors of the histogram. SO if I want to have a logscale(X or Y), the box
> does not response to the logscale.
> 
> Can you suggest how to do it?
> 
> Thanks.
> 
> --
> 
> --------------------------------------------------------
>                    Zaldy A. Nawang
>                    PS Users Room 2
>                    Yon Gokan,
>                    E362, Neutrino Group,
>                    IPNS, KEK,
>                    Japan
> 
>                    e-mail: zaldy@neutrino.kek.jp
>                    Tel. No. : (81) 029864 - 5387
> --------------------------------------------------------



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET