如何仅在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)