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
2 changes: 1 addition & 1 deletion src/ansys/dpf/core/fields_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def plot(self, label_space: dict = None, **kwargs):
fields = self.get_fields(label_space=label_space)
for f in fields:
plt.add_field(field=f, **kwargs)
plt.show_figure(**kwargs)
return plt.show_figure(**kwargs)

def animate(
self,
Expand Down
4 changes: 2 additions & 2 deletions src/ansys/dpf/core/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def show_figure(self, **kwargs):

# Show depending on return_cpos option
kwargs_in = _sort_supported_kwargs(bound_method=self._plotter.show, **kwargs)
return self._plotter.show(**kwargs_in)
return self._plotter.show(**kwargs_in), self._plotter

@staticmethod
def _set_scalar_bar_title(kwargs):
Expand Down Expand Up @@ -1111,7 +1111,7 @@ def plot_contour(
kwargs_in = _sort_supported_kwargs(
bound_method=self._internal_plotter._plotter.show, **kwargs
)
return self._internal_plotter._plotter.show(**kwargs_in)
return self._internal_plotter._plotter.show(**kwargs_in), self._internal_plotter._plotter

def _plot_contour_using_vtk_file(self, fields_container, notebook=None):
"""Plot the contour result on its mesh support.
Expand Down
Loading