Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aangelopoulos committed May 29, 2024
1 parent e6b3ad4 commit d26c293
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import numpy as np
import matplotlib.patheffects as pe
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -223,6 +224,7 @@ def make_plots(
axs[0].set_yticklabels([])

plt.tight_layout()
os.makedirs("/".join(plot_savename.split("/")[:-1]), exist_ok=True)
plt.savefig(plot_savename)


Expand Down

0 comments on commit d26c293

Please sign in to comment.