11void gr112_reverse_graph_and_errors() {
12 auto c =
new TCanvas(
"c",
"Reversed graphs",0,0,900,900);
17 graphe->GetXaxis()->SetNdivisions(514);
18 graphe->GetYaxis()->SetNdivisions(514);
19 graphe->SetMarkerStyle(
kCircle);
20 graphe->SetPoint(0,5,5);
21 graphe->SetPointError(0,1,3);
22 graphe->SetPoint(1,9,9);
23 graphe->SetPointError(1,1,3);
27 graphe->Draw(
"a pl ");
31 graphe->Draw(
"a pl rx ry ");
37 graphe->GetXaxis()->SetMoreLogLabels();
38 graphe->GetYaxis()->SetMoreLogLabels();
39 graphe->Draw(
"a pl rx ry");
43 graphae->GetXaxis()->SetNdivisions(514);
44 graphae->GetYaxis()->SetNdivisions(514);
45 graphae->SetMarkerStyle(
kCircle);
46 graphae->SetPoint(0,5,5);
47 graphae->SetPointError(0,1,3,3,1);
48 graphae->SetPoint(1,9,9);
49 graphae->SetPointError(1,1,3,1,3);
53 graphae->Draw(
"a pl ");
57 graphae->Draw(
"a pl rx ry ");
63 graphae->GetXaxis()->SetMoreLogLabels();
64 graphae->GetYaxis()->SetMoreLogLabels();
65 graphae->Draw(
"a pl rx ry");
69 graphbe->GetXaxis()->SetNdivisions(514);
70 graphbe->GetYaxis()->SetNdivisions(514);
71 graphbe->SetMarkerStyle(
kCircle);
72 graphbe->SetPoint(0,5,5);
73 graphbe->SetPointError(0,1,3,3,1,.5,.2,.5,.2);
74 graphbe->SetPoint(1,9,9);
75 graphbe->SetPointError(1,1,3,1,3,-.5,-.2,-.5,-.2);
79 graphbe->Draw(
"a pl ");
83 graphbe->Draw(
"a pl rx ry ");
89 graphbe->GetXaxis()->SetMoreLogLabels();
90 graphbe->GetYaxis()->SetMoreLogLabels();
91 graphbe->Draw(
"a pl rx ry");
A TGraphBentErrors is a TGraph with bent, asymmetric error bars.