On this page
matplotlib.axis.YAxis.grid
YAxis.grid(self, b=None, which='major', **kwargs)- 
    
Configure the grid lines.
Parameters: - 
           
bbool or None - 
           
Whether to show the grid lines. If any kwargs are supplied, it is assumed you want the grid on and b will be set to True.
If b is None and there are no kwargs, this toggles the visibility of the lines.
 - 
           
which{'major', 'minor', 'both'} - 
           
The grid lines to apply the changes on.
 - 
           
**kwargsLine2D properties - 
           
Define the line properties of the grid, e.g.:
grid(color='r', linestyle='-', linewidth=2) 
 - 
           
 
Examples using matplotlib.axis.YAxis.grid
  
  
  
  © 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
 https://matplotlib.org/3.2.2/api/_as_gen/matplotlib.axis.YAxis.grid.html