-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
The function Model.plot
cannot return any result, unlike its cousin from pyvista
:
https://docs.pyvista.org/api/plotting/_autosummary/pyvista.plot.html
In particular, we can have 3 types of results:
return_img
: for returning a np-arrayreturn_cpos
: for returning camera positionreturn_viewer
: for returning a jupyterlab viewer, scene, or display object when plotting with jupyter notebook
We need to replace:
self.metadata.meshed_region.grid.plot(
color=color, show_edges=show_edges, **kwargs
)
by
return self.metadata.meshed_region.grid.plot(
color=color, show_edges=show_edges, **kwargs
)
... i.e. adding a return
🧙♂️
Also, we could a link to Pyvista doc in pydpf doc (https://dpfdocs.pyansys.com/api/ansys.dpf.core.model.html?highlight=plot#ansys.dpf.core.model.Model.plot)
tonange
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request