@couet TGraphPainter has a baked in option for reversing x and y axes. I’m struggling to get TObjects (like my fit, or various lines/boxes) to match the reversed axes.
TGraphErrors *g = new TGraphErrors(n,x,y,ex,ey);
g->Draw("ALP RX");
g->Fit("pol1");
the above code will produce the TGraph reversed, but the fit with the original axes.
I have a more detailed Macro with data below
Forum_Macro.C (913 Bytes)
EfficiencyResults.root (34.6 KB)
Please read tips for efficient and successful posting and posting code
ROOT Version: 6.18/04
Platform: MacOS v10.15.5
Compiler: Not Provided