pyvista.examples.cells.plot_cell#
- plot_cell(grid, cpos=None, *, show_normals: bool = False, **kwargs)[source]#
Plot a
pyvista.UnstructuredGridwhile displaying cell indices.- Parameters:
- grid
pyvista.UnstructuredGrid Unstructured grid (ideally) containing a single cell.
- cpos
str,optional Camera position.
- show_normalsbool,
optional Show the face normals of the cell. Only applies to 2D or 3D cells. Cell faces with correct orientation should have the normal pointing outward.
Added in version 0.47.
- **kwargs
dict,optional Additional keyword arguments when showing. See
pyvista.Plotter.show().
- grid
Examples
Create and plot a single hexahedron.
>>> from pyvista import examples >>> grid = examples.cells.Hexahedron() >>> examples.plot_cell(grid)