Skip to content

Commit

Permalink
make plt.close() consistent across all plots
Browse files Browse the repository at this point in the history
This is functionally useless, I think.
  • Loading branch information
widdowquinn committed Jan 20, 2022
1 parent 3414348 commit 7f76767
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyani/scripts/subcommands/subcmd_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ def write_distribution(
title=f"matrix_{matdata.name}_run{run_id}",
)

# Be tidy with matplotlib caches
plt.close("all")


def write_heatmap(
run_id: int,
Expand Down

0 comments on commit 7f76767

Please sign in to comment.