void graphreverse() {
auto c =
new TCanvas(
"c",
"Reversed graphs",0,0,900,900);
graphe->GetXaxis()->SetNdivisions(514);
graphe->GetYaxis()->SetNdivisions(514);
graphe->SetPoint(0,5,5);
graphe->SetPointError(0,1,3);
graphe->SetPoint(1,9,9);
graphe->SetPointError(1,1,3);
graphe->Draw("a pl ");
graphe->Draw("a pl rx ry ");
graphe->GetXaxis()->SetMoreLogLabels();
graphe->GetYaxis()->SetMoreLogLabels();
graphe->Draw("a pl rx ry");
graphae->GetXaxis()->SetNdivisions(514);
graphae->GetYaxis()->SetNdivisions(514);
graphae->SetPoint(0,5,5);
graphae->SetPointError(0,1,3,3,1);
graphae->SetPoint(1,9,9);
graphae->SetPointError(1,1,3,1,3);
graphae->Draw("a pl ");
graphae->Draw("a pl rx ry ");
graphae->GetXaxis()->SetMoreLogLabels();
graphae->GetYaxis()->SetMoreLogLabels();
graphae->Draw("a pl rx ry");
graphbe->GetXaxis()->SetNdivisions(514);
graphbe->GetYaxis()->SetNdivisions(514);
graphbe->SetPoint(0,5,5);
graphbe->SetPointError(0,1,3,3,1,.5,.2,.5,.2);
graphbe->SetPoint(1,9,9);
graphbe->SetPointError(1,1,3,1,3,-.5,-.2,-.5,-.2);
graphbe->Draw("a pl ");
graphbe->Draw("a pl rx ry ");
graphbe->GetXaxis()->SetMoreLogLabels();
graphbe->GetYaxis()->SetMoreLogLabels();
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.