pyvista.Plotter.show_grid#

Plotter.show_grid(**kwargs)[source]#

Show grid lines and bounds axes labels.

A wrapped implementation of show_bounds() to change default behavior to use grid lines and showing the axes labels on the outer edges.

This is intended to be similar to matplotlib.pyplot.grid().

Parameters:
**kwargsdict, optional

See Renderer.show_bounds() for additional keyword arguments.

Returns:
vtk.vtkAxesActor

Bounds actor.

Examples

>>> import pyvista as pv
>>> mesh = pv.Cone()
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(mesh)
>>> _ = pl.show_grid()
>>> pl.show()
../../../_images/pyvista-Plotter-show_grid-1_00_00.png