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 tomatplotlib
’sgrid
function.- Parameters
- **kwargs
dict
,optional
See
Renderer.show_bounds()
for additional keyword arguments.
- **kwargs
- 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()