matplotlib

matplotlib.pyplot.minorticks_on

matplotlib.pyplot.minorticks_on()

Display minor ticks on the current plot.

Displaying minor ticks reduces performance; turn them off using minorticks_off() if drawing speed is a problem.