From 387b53b4cdfe1ab312f24360be0145c26ae5ea30 Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Mon, 16 May 2022 10:43:15 +0200 Subject: [PATCH 1/2] Fix plot_chart which did not call pyplot.show --- ansys/dpf/core/plotter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansys/dpf/core/plotter.py b/ansys/dpf/core/plotter.py index b233b225dae..3a7ae8d1c9d 100755 --- a/ansys/dpf/core/plotter.py +++ b/ansys/dpf/core/plotter.py @@ -499,7 +499,8 @@ def plot_chart(self, fields_container): substr = fields_container[0].name.split("_") pyplot.ylabel(substr[0] + fieldMin.unit) pyplot.title(substr[0] + ": min/max values over time") - return pyplot.legend() + pyplot.legend() + pyplot.show() def plot_contour( self, From f67ec932c7d07054cda68f7299f10cfff0b3d7da Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Mon, 16 May 2022 10:53:39 +0200 Subject: [PATCH 2/2] Fix plot_chart which did not return the current figure --- ansys/dpf/core/plotter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ansys/dpf/core/plotter.py b/ansys/dpf/core/plotter.py index 3a7ae8d1c9d..521bf4ccf80 100755 --- a/ansys/dpf/core/plotter.py +++ b/ansys/dpf/core/plotter.py @@ -501,6 +501,7 @@ def plot_chart(self, fields_container): pyplot.title(substr[0] + ": min/max values over time") pyplot.legend() pyplot.show() + return pyplot.gcf() def plot_contour( self,