Before (decimal display) | After (integer display) |
---|---|
Change Locator to 1
.
from matplotlib.ticker import *
ax = plt.gca()
ax.yaxis.set_major_locator(MultipleLocator(1)) #yaxis for x-axis-> xaxis
matplotlib - memoring http://seesaawiki.jp/met-python/d/matplotlib#content_9_31_4
Recommended Posts