Skip to content

Commit

Permalink
Add svg to the saved file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
AgenttiX committed Dec 4, 2024
1 parent 70954df commit 8083cca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def save(fig: plt.Figure, path: str):
if has_extension:
fig.savefig(path)
else:
fig.savefig(f"{path}.eps")
fig.savefig(f"{path}.png")
for ext in ["eps", "pdf", "png", "svg"]:
fig.savefig(f"{path}.{ext}")


def save_and_show(fig: plt.Figure, path: str):
Expand Down

0 comments on commit 8083cca

Please sign in to comment.