ExplicitStructuredGrid.hide_cells#
- ExplicitStructuredGrid.hide_cells(ind: VectorLike[int], inplace: bool = False) Self[source]#
Hide specific cells.
Hides cells by setting the ghost cell array to
HIDDENCELL.- Parameters:
- Returns:
- output
ExplicitStructuredGrid|None A deep copy of this grid if
inplace=Falsewith the hidden cells, or this grid with the hidden cells if otherwise.
- output
Examples#
Download Python source code | Download Jupyter notebook
>>> from pyvista import examples
>>> grid = examples.load_explicit_structured()
>>> grid = grid.hide_cells(range(80, 120))
>>> grid.plot(color='w', show_edges=True, show_bounds=True)