plot_isosurface#

plot_isosurface(data, fig=None, show_isosurface=None, smooth_kwargs=None, mesh_kwargs=None, plotter_kwargs=None)[source]#

Plots 3D isosurfaces

Return type:

Plotter

Parameters:
  • data – A dataclass containing 3D labeled image data

  • fig – Pyvista plotter object

  • show_isosurface – List of isosurfaces to show. Default is single isosurface at average between maximum and minimum label values.

  • smooth_kwargs – Pyvista smoothing keyword arguments from [pyvista.PolyDataFilters.smooth](https://docs.pyvista.org/api/core/_autosummary/pyvista.polydatafilters.smooth#pyvista.PolyDataFilters.smooth). Defaults to None = No surface smoothing.

  • mesh_kwargs – Pyvista mesh keyword arguments to pass to the plotter. Defaults to None.

  • plotter_kwargs – Additional keyword arguments to pass to the plotter. Defaults to None.

Returns:

PyVista plotter object with added orthogonal slice mesh.

Return type:

pv.Plotter