Axis.
set_tick_params
Set appearance parameters for ticks, ticklabels, and gridlines.
For documentation of keyword arguments, see matplotlib.axes.Axes.tick_params().
matplotlib.axes.Axes.tick_params()