problem with option E2 in TGraphAsymmErrors

From: Tancredi Carli <tcarli_at_mail.cern.ch>
Date: Fri, 4 Feb 2005 17:50:31 +0100 (CET)

 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 Fri Feb 04 2005 - 17:50:35 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET