You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 2.0.0b1.post7580.dev0+ge487118
matplotlib
Fork me on GitHub

This Page

Axes.tick_params can set gridline properties

Tick objects hold gridlines as well as the tick mark and its label. Axis.set_tick_params, Axes.tick_params and pyplot.tick_params now have keyword arguments ‘grid_color’, ‘grid_alpha’, ‘grid_linewidth’, and ‘grid_linestyle’ for overriding the defaults in rcParams: ‘grid.color’, etc.