Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,3 @@ def plot(self, object: Any, filter: str = None, **plotting_options):
else:
self.pv_interface.plot(object, filter, **plotting_options)

def show(self):
"""Show the rendered scene."""
self.pv_interface.show()
29 changes: 26 additions & 3 deletions src/ansys/tools/visualization_interface/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,29 @@ def plot(self, object: Any, **plotting_options):
"""
self._backend.plot(object=object, **plotting_options)

def show(self):
"""Show the plotted objects."""
self._backend.show()
def show(
self,
object: Any = None,
screenshot: str = None,
filter: bool = None,
**plotting_options
) -> None:
"""Show the plotted objects.

Parameters
----------
object : Any, optional
Object to show, by default None.
screenshot : str, optional
Path to save a screenshot, by default None.
filter : bool, optional
Flag to filter the object, by default None.
plotting_options : dict
Additional plotting options the selected backend accepts.
"""
self._backend.show(
object=object,
screenshot=screenshot,
filter=filter,
**plotting_options
)