Hello Olivier,
In my case, the first plot looks fine (I get the error band),
in the second I do not get the error band, but just the points,
but the third and the forth plots are ok, i.e. I have errors band,
according to the option.
I have no explanation, do you the correct results ?
I am using version
/afs/cern.ch/sw/root/v4.02.00/rh73_gcc32/root
Thank you.
Tancredi
On Fri, 4 Feb 2005, Olivier Couet wrote:
>
> Hello,
>
> It is not clear for me what you would like to obtain. Seems to me the
> plot you get is the one your macro should produce. Can you clarify a bit
> the result you would like to get ?
>
> Cheers, Olivier
>
>
> On Fri, 4 Feb 2005, Tancredi Carli wrote:
>
> >
> > Hello,
> >
> > I have a problem to work with option E2 in TGraphAsymmErrors.
> > It works fine, if I plot directly the Graph, but not when I
> > plot it in a predefined frame.
> >
> > Can somebody help ?
> >
> > here is my test.C
> >
> > void test()
> > {
> >
> > TCanvas *c1= new TCanvas();
> > TH1F *h1 = c1->DrawFrame(0.,-10.,10.,12.);
> > c1->Divide(2,2);
> >
> > TGraphAsymmErrors* g1= new TGraphAsymmErrors();
> >
> > for (Int_t i=0; i<10; i++) {
> >
> > g1->SetPoint(i,i+0.5,1.);
> > g1->SetPointError(i,0.25,0.25,i*1.1,i*1.1);
> >
> > }
> >
> > c1->cd(1);
> > g1->SetFillColor(2);
> > g1->Draw("Ae2");
> >
> >
> > c1->cd(2);
> > h1->Draw();
> > g1->Draw("e2");
> >
> > c1->cd(3);
> > h1->Draw();
> > g1->Draw("e3");
> >
> > c1->cd(4);
> > h1->Draw();
> > g1->Draw("e4");
> >
> > }
> >
> >
>
>
-- +-------------------------------------------------------------------+ | Tancredi Carli tancredi.carli_at_cern.ch | | CERN, Division EP phone ++41 22 767 9606 | | CH-1211 Geneva 23 Room 40-1-C06 | +-------------------------------------------------------------------+Received on Sun Feb 06 2005 - 14:37:44 MET
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET