Rob,
This functionality has been implemented in TGraphAsymmErrors.
Use draw options "2", "3" or '4" as indicated in the doc.
see:
http://root.cern.ch/root/htmldoc/TGraphErrors.html#TGraphaSymmErrors:Paint
You can create a TGraphAsymmErrors from a TH1. See:
TGraphAsymmErrors::TGraphAsymmErrors(const TH1 *h) // TGraphAsymmErrors constructor importing its parameters from the TH1
object passed as argument
// the low and high errors are set to the bin error of the histogram.
and
TGraphAsymmErrors::TGraphAsymmErrors(const TH1 *pass, const TH1 *total,
Option_t *option)
// Creates a TGraphAsymmErrors by dividing two input TH1 histograms:
// pass/total. (see TGraphAsymmErrors::BayesDivide)
http://root.cern.ch/root/htmldoc/TGraphAsymmErrors.html#TGraphAsymmErrors:BayesDivide
Rene Brun
On
Fri, 8 Apr
2005, Rob Snihur wrote:
> Hi,
> Is the asymmetric error band now implemented for TGraphxxx classes?
> If so, which is the first root version to have it?
> Can you provide an example or instructions?
> I can't get it to work in version 3.05/07.
> I found the exchange below in the roottalk archives.
>
> It looks like I cannot draw asymmetric errors for a TH1,
> and I cannot draw a band for TGraph.
> I guess I can do something clever,
> like plotting 3 TH1's (or TGraphs),
> and trying to shade the regions in between.
> However, I am not clever...
>
> thanks,
> -rob
>
>
> The error band option is only available for histograms (see e1,2,3,4
> options). We will implement it also for TGraphxxx classes.
>
> Rene Brun
>
> On Wed, 27 Aug
> 2003, Stefan [iso-8859-15] Höche wrote:
>
> > Hi Rooters,
> >
> > I would like to draw an error band in a TGraphAsymmErrors.
> > Unfortunately in the reference guide there is no option cited for this
> > purpose. Is this feature available at all ?
> > If yes, which option will I have to specify ?
> > Thanks
> > Regards
> >
> > Stefan
> >
>
Received on Fri Apr 08 2005 - 22:54:46 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET