Skip to content

Commit 75b4bb8

Browse files
committed
fix double plotting in notebooks
1 parent 7b3fadd commit 75b4bb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autoemulate/sensitivity_analysis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,5 +298,7 @@ def plot_sensitivity_analysis(results, index="S1", n_cols=None, figsize=None):
298298
)
299299

300300
plt.tight_layout()
301+
# prevent double plotting in notebooks
302+
plt.close(fig)
301303

302304
return fig

0 commit comments

Comments
 (0)