import matplotlib.ticker as tick
def showOnlySomeTicks(x, pos):
s = str(int(x))
if x == 5000:
return'5e3'#'%.0e' % x
return ''
ax = plt.axes([0.165,0.2,0.95-0.24,0.95-0.2])
ax.xaxis.set_minor_formatter(tick.FuncFormatter(showOnlySomeTicks))
Then in the code something ju
Hi,
As the subject shows, I am trying to create a custom ticker (class??) that
has pretty formatted log tick.
Instead of just 10^-5, 10^-5, etc, is something more like
[1-10^-2, 1-10^-3, 1-10^-4] etc
I am histogram'n a set of data that is very close to 1, basically ranging
from 0.990 and 0.9922