pythonmatplotlibaxisyticks

how to turn on minor ticks only on y axis


How can I turn the minor ticks only on y axis on a linear vs linear plot?

When I use the function minor_ticks_on to turn minor ticks on, they appear on both x and y axis.


Solution

  • Nevermind, I figured it out.

    ax.tick_params(axis='x', which='minor', bottom=False)