matplotlib设置major_locator,minor_locator
xmajorLocator = MultipleLocator(5)
ymajorLocator = MultipleLocator(0.05)
ax.xaxis.set_major_locator(xmajorLocator)
ax.yaxis.set_major_locator(ymajorLocator)
yminorLocator = MultipleLocator(0.025)
ax.yaxis.set_minor_locator(yminorLocator)
ax.yaxis.grid(True, which='minor')
matplotlib设置颜色
参考:
https://matplotlib.org/gallery/color/named_colors.html
matplotlib设置color_palette
参考:
https://www.cntofu.com/book/172/docs/54.md