matplotlib的x、y轴只显示整数
参考:https://www.coder.work/article/382321import matplotlib.pyplot as pltimport matplotlib.ticker as ticker_, ax = plt.subplots()# Be sure to only pick integer tick locations.for axis in [ax.xaxis, ax.yaxis]: axis.set_major_locator(ticker.MaxNLo
原创
2020-07-10 22:26:57 ·
5448 阅读 ·
0 评论