matplotlib: x,y axis を好きな桁で表示する | sheldon cooper 2.0のブログ

sheldon cooper 2.0のブログ

ブログの説明を入力します。


# setting the xticks to have 3 decimal places
xx, locs = plt.xticks()
ll = ['%.3f' % a for a in xx]
plt.xticks(xx, ll)
plt.show()


http://stackoverflow.com/questions/14442099/matplotlib-how-to-show-all-digits-on-ticks