Is there a way to make all axis labels “exponent-iated” if the axis is set to logscale?
To clarify, I’d like to have linear x axis and logarithmic y axis, with the latter ranging from e.g. 0.1 to 1000. However, rather than printing “1” and “10” I prefer 10^0 and 10^1.
What you are asking is the default behavior. Example:
TCanvas *c1 = new TCanvas("c1","c1",800,600);
TH1F *h1 = new TH1F("h1","Histo 1",100,-5,5);
By the way it is not possible to get 10^0 and 10^1 .
The notation with power of 10 start at 10^2.
We will not implement 10^0 and 10^1.
Thanks for clearing that up. I was very well aware of the default behaviour.
However, I still prefer 10^0 and 10^1 rather than 1 and 10, and in my opinion former notation is much more consistent.
As I like to avoid (or minimize) the amount of post-processing of ROOT plots, it would have been good if there was that option.
We do not think 10^0 and 10^1 are the common way to draw log scales. It looks really ugly. The 0 et 1 exponents are removed on purpose.