如何仅在y轴上打开次刻度线matplotlib [英] how to turn on minor ticks only on y axis matplotlib
本文介绍了如何仅在y轴上打开次刻度线matplotlib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在线性图和线性图上仅在y轴上转动次刻度?
How can I turn the minor ticks only on y axis on a linear vs linear plot?
当我使用功能minor_ticks_on
打开次刻度时,它们同时出现在x和y轴上.
When I use the function minor_ticks_on
to turn minor ticks on, they appear on both x and y axis.
推荐答案
没关系,我知道了.
ax.tick_params(axis='x', which='minor', bottom=False)
这篇关于如何仅在y轴上打开次刻度线matplotlib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文