matplotlib ax.tick_params 设置坐标轴刻度标签颜色

ax.tick_params(direction='out', length=6, width=2, colors='r',
               grid_color='r', grid_alpha=0.5)

推荐使用 colors 传递,修改刻度标签颜色

colorscolor
Tick color and label color.

如果觉得文章不错,可以分享给其他人哟~
原文地址:https://www.cnblogs.com/hany-postq473111315/p/15324388.html