14 auto c =
new TCanvas(
"c",
"Reversed graphs", 0, 0, 900, 900);
19 graphe->GetXaxis()->SetNdivisions(514);
20 graphe->GetYaxis()->SetNdivisions(514);
21 graphe->SetMarkerStyle(
kCircle);
22 graphe->SetPoint(0, 5, 5);
23 graphe->SetPointError(0, 1, 3);
24 graphe->SetPoint(1, 9, 9);
25 graphe->SetPointError(1, 1, 3);
29 graphe->Draw(
"a pl ");
33 graphe->Draw(
"a pl rx ry ");
39 graphe->GetXaxis()->SetMoreLogLabels();
40 graphe->GetYaxis()->SetMoreLogLabels();
41 graphe->Draw(
"a pl rx ry");
45 graphae->GetXaxis()->SetNdivisions(514);
46 graphae->GetYaxis()->SetNdivisions(514);
47 graphae->SetMarkerStyle(
kCircle);
48 graphae->SetPoint(0, 5, 5);
49 graphae->SetPointError(0, 1, 3, 3, 1);
50 graphae->SetPoint(1, 9, 9);
51 graphae->SetPointError(1, 1, 3, 1, 3);
55 graphae->Draw(
"a pl ");
59 graphae->Draw(
"a pl rx ry ");
65 graphae->GetXaxis()->SetMoreLogLabels();
66 graphae->GetYaxis()->SetMoreLogLabels();
67 graphae->Draw(
"a pl rx ry");
71 graphbe->GetXaxis()->SetNdivisions(514);
72 graphbe->GetYaxis()->SetNdivisions(514);
73 graphbe->SetMarkerStyle(
kCircle);
74 graphbe->SetPoint(0, 5, 5);
75 graphbe->SetPointError(0, 1, 3, 3, 1, .5, .2, .5, .2);
76 graphbe->SetPoint(1, 9, 9);
77 graphbe->SetPointError(1, 1, 3, 1, 3, -.5, -.2, -.5, -.2);
81 graphbe->Draw(
"a pl ");
85 graphbe->Draw(
"a pl rx ry ");
91 graphbe->GetXaxis()->SetMoreLogLabels();
92 graphbe->GetYaxis()->SetMoreLogLabels();
93 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.