From f84ed77c1234bba33187393f0efa97d5df2bfb1b Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Fri, 24 May 2024 14:29:56 +0200 Subject: [PATCH] FIX: Add missing show argument in plot methods --- pyaedt/modules/solutions.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pyaedt/modules/solutions.py b/pyaedt/modules/solutions.py index c33f502246b..7660f89162f 100644 --- a/pyaedt/modules/solutions.py +++ b/pyaedt/modules/solutions.py @@ -819,8 +819,9 @@ def plot( title="", snapshot_path=None, is_polar=False, + show=True, ): - """Create a matplotlib plot based on a list of data. + """Create a matplotlib figure based on a list of data. Parameters ---------- @@ -893,9 +894,9 @@ def plot( if len(data_plot) > 15: show_legend = False if is_polar: - return plot_polar_chart(data_plot, size, show_legend, x_label, y_label, title, snapshot_path) + return plot_polar_chart(data_plot, size, show_legend, x_label, y_label, title, snapshot_path, show=show) else: - return plot_2d_chart(data_plot, size, show_legend, x_label, y_label, title, snapshot_path) + return plot_2d_chart(data_plot, size, show_legend, x_label, y_label, title, snapshot_path, show=show) @pyaedt_function_handler(xlabel="x_label", ylabel="y_label", math_formula="formula") def plot_3d( @@ -909,8 +910,9 @@ def plot_3d( formula=None, size=(2000, 1000), snapshot_path=None, + show=True, ): - """Create a matplotlib 3d plot based on a list of data. + """Create a matplotlib 3D figure based on a list of data. Parameters ---------- @@ -985,7 +987,7 @@ def plot_3d( y_label = y_axis if not title: title = "Simulation Results Plot" - return plot_3d_chart(data_plot, size, x_label, y_label, title, snapshot_path) + return plot_3d_chart(data_plot, size, x_label, y_label, title, snapshot_path, show=show) @pyaedt_function_handler() def ifft(self, curve_header="NearE", u_axis="_u", v_axis="_v", window=False):