Hi,
I’m trying to set the log scale for both the X and Y axis of a TCanvas where i want to plot a TGraphErrors and perform a linear Fit. I tried to use both the global gPad->SetLogy() and gPad->SetLogx() but it doesn’t work: on the Y axis the log scale is set properly but on the X axis everything disappears, and also, the fit that is supposed to be linear is not.
Do you have any suggestions about how to properly set the log scales in this situation?
Unfortunately I need a log-log scale in order to perform a linear fit and thus estimating a parameter that is the slope;
Probably I’ll have to try a different approach with ROOT because of this “bug”.
These “scales” are just for drawing / displaying it. They have nothing to do with the fitting. You will get the same “parameters” from the fit, regardless how you draw it.
Your graph seems to look fine when one draws it in a simple linear-linear plot.