I am having trouble in the configuration of my axis. I want to do three main adjustments.:
The first one, is that i don’t want to plot the first and last limits of the y axis [0 : 35e3].
The second and the third is kinda of similar, in the y axis i want instead of 35.000 print 35 and then have a 10e3 scale, and print the scale, in right top of the graph if possible.
And the last one is on x axis, my data is in MeV but i want plot it in GeV, so i wonder is is possible or i need to change my data directly?.
In my problem number 2, i should write: histogram.GetYaxis().SetMaxDigits(2) right ? And so it should appear 35 x 10 e3 instead of 35000? The problem is that i have more than one histogram in my plot, i used GetYaxis().SetMaxDigits(2) in all of them, but the digits in the Y axis remained the same. It should have worked as i did or there is something different when dealing with more than one histogram?.
You can try to change a bit the min and max of the histogram. The label optimisation will very likely drop the fist and last labels. May be post an example macro so we can show on a real example.