13 auto c =
new TCanvas(
"c",
"Reversed graphs",0,0,900,900);
18 graphe->GetXaxis()->SetNdivisions(514);
19 graphe->GetYaxis()->SetNdivisions(514);
20 graphe->SetMarkerStyle(
kCircle);
21 graphe->SetPoint(0,5,5);
22 graphe->SetPointError(0,1,3);
23 graphe->SetPoint(1,9,9);
24 graphe->SetPointError(1,1,3);
28 graphe->Draw(
"a pl ");
32 graphe->Draw(
"a pl rx ry ");
38 graphe->GetXaxis()->SetMoreLogLabels();
39 graphe->GetYaxis()->SetMoreLogLabels();
40 graphe->Draw(
"a pl rx ry");
44 graphae->GetXaxis()->SetNdivisions(514);
45 graphae->GetYaxis()->SetNdivisions(514);
46 graphae->SetMarkerStyle(
kCircle);
47 graphae->SetPoint(0,5,5);
48 graphae->SetPointError(0,1,3,3,1);
49 graphae->SetPoint(1,9,9);
50 graphae->SetPointError(1,1,3,1,3);
54 graphae->Draw(
"a pl ");
58 graphae->Draw(
"a pl rx ry ");
64 graphae->GetXaxis()->SetMoreLogLabels();
65 graphae->GetYaxis()->SetMoreLogLabels();
66 graphae->Draw(
"a pl rx ry");
70 graphbe->GetXaxis()->SetNdivisions(514);
71 graphbe->GetYaxis()->SetNdivisions(514);
72 graphbe->SetMarkerStyle(
kCircle);
73 graphbe->SetPoint(0,5,5);
74 graphbe->SetPointError(0,1,3,3,1,.5,.2,.5,.2);
75 graphbe->SetPoint(1,9,9);
76 graphbe->SetPointError(1,1,3,1,3,-.5,-.2,-.5,-.2);
80 graphbe->Draw(
"a pl ");
84 graphbe->Draw(
"a pl rx ry ");
90 graphbe->GetXaxis()->SetMoreLogLabels();
91 graphbe->GetYaxis()->SetMoreLogLabels();
92 graphbe->Draw(
"a pl rx ry");
TGraph with asymmetric error bars.
A TGraphBentErrors is a TGraph with bent, asymmetric error bars.
A TGraphErrors is a TGraph with error bars.