Configure the grid lines.
Whether to show the grid lines. If any kwargs are supplied, it is assumed you want the grid on and visible will be set to True.
If visible is None and there are no kwargs, this toggles the visibility of the lines.
The grid lines to apply the changes on.
Line2D
properties
Define the line properties of the grid, e.g.:
grid(color='r', linestyle='-', linewidth=2)
matplotlib.axis.Axis.grid
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.axis.Axis.grid.html