show_grid#

Plotter.show_grid(**kwargs)#

Show gridlines and axes labels.

A wrapped implementation of show_bounds to change default behaviour to use gridlines and showing the axes labels on the outer edges. This is intended to be similar to matplotlib’s grid function.

Parameters
**kwargsdict, optional

See Renderer.show_bounds() for additional keyword arguments.

Returns
vtk.vtkAxesActor

Bounds actor.

Examples

>>> import pyvista
>>> from pyvista import examples
>>> pl = pyvista.Plotter()
>>> _ = pl.add_mesh(examples.download_guitar())
>>> _ = pl.show_grid()
>>> pl.show()
../../../_images/pyvista-Plotter-show_grid-1_00_00.png