Skip to content

Commit

Permalink
Updated final plots
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkastner committed May 26, 2024
1 parent 9a6c9b0 commit a4766cd
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions pyqmmm/qm/energy_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,15 @@ def plot_data(energies_by_file, min_first_energy, plot_relative_to_lowest):

# Save the figure with enough padding
plt.legend()
plt.savefig(
"energy_plot.png",
dpi=600,
bbox_extra_artists=(plt.legend(bbox_to_anchor=(1.05, 1), loc="upper left"),),
bbox_inches="tight"
)
extensions = ["png", "svg"]
for ext in extensions:
plt.savefig(
f"energy_plot.{ext}",
dpi=600,
bbox_extra_artists=(plt.legend(bbox_to_anchor=(1.05, 1), loc="upper left"),),
bbox_inches="tight",
format=ext,
)


def plot_energies():
Expand Down

0 comments on commit a4766cd

Please sign in to comment.