Version 3.1.2
matplotlib
Fork me on GitHub

matplotlib.axes.Axes.minorticks_off

Axes.minorticks_off(self)

Remove minor ticks from the axes.