Skip to content

Commit

Permalink
FIX: Add missing show argument in plot methods
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys committed May 24, 2024
1 parent 1cdd02e commit f84ed77
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pyaedt/modules/solutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------
Expand Down Expand Up @@ -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(
Expand All @@ -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
----------
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit f84ed77

Please sign in to comment.