Skip to content

Commit

Permalink
Prevent double plots of taylor diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-kipawa committed Feb 20, 2024
1 parent b88c8f4 commit 9c6f01c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modelskill/plotting/_taylor_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,6 @@ def taylor_diagram(
)
fig.suptitle(title, size="x-large")

# prevent the plot from being displayed, since it is also displayed by the returned object
plt.close()
return fig

0 comments on commit 9c6f01c

Please sign in to comment.