I have a question about tick formatting. I have a semilogx
> plot and if I resize the xticks using locs , labels = xticks
> () set(labels , size=ticksize) I like the size and the font,
> but the exponents (10^0) run into the axis.
The reasons for are complicated and have to do with an optimization to
make exponential ticking faster, and I won't go into them right now.
Suffice it to say that it is a bug, but there may be a workaround
Do any of the suggestions here help?
Note you can also control the "pad" in points of the offset of the
ticks from the xaxis
ticks = ax.xaxis.get_major_ticks()
for tick in ticks:
or if you prefer
The default pad is controlled by an rc parameter
tick.major.pad : 4 # distance to major tick label in points
tick.minor.pad : 4 # distance to the minor tick label in points