2017-09-01 matplotlibで目盛りを整数にする AI 以下でできる。 ax.xaxis.set_major_locator(MaxNLocator(integer=True)) 参考: stackoverflow.com