[ Web Proxy ]
URL:
Viewing: https://matplotlib.org/gallery/mplot3d/../misc/../../api/_as_gen/matplotlib.axis.Axis.grid.html [Back]  [Original]

matplotlib.axis.Axis.grid — Matplotlib 3.11.2 documentation
Back to top
Search the docs ...:

matplotlib.axis.Axis.grid#

Axis.grid(visible=None, which='major', **kwargs)[source]#

Configure the grid lines.

Parameters:
visiblebool or None

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.

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.Axis.grid#

[]

Boxplots

Boxplots
[]

Box plot vs. violin plot comparison

Box plot vs. violin plot comparison
[]

Log scale

Log scale
[]

Symlog scale

Symlog scale

Web Proxy Viewer  |  New URL  |  Original Page