python - How to change matplotlib axes so that that it does not display in scientific notation? -
this question has answer here:
how change matplotlib axes that not display in scientific notation? (i.e. displaying 626.70 ... 626.77 in case) tried changing x ticks doing ax.xaxis.set_ticks(np.arange(626.720, 626.727, 0.001))
, axes crammed on left hand side.
thanks.
x_formatter = matplotlib.ticker.scalarformatter(useoffset=false) x_formatter.set_scientific(false) ax.xaxis.set_major_formatter(x_formatter)
Comments
Post a Comment