Skip to content

Commit

Permalink
Merge pull request #905 from pyiron/improve-eam-plotting
Browse files Browse the repository at this point in the history
add tight layout
  • Loading branch information
Leimeroth authored Nov 15, 2023
2 parents 23b8c23 + 6ba596c commit a5dfafd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyiron_contrib/atomistics/atomicrex/potential_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,9 +823,13 @@ def plot_final_potential(self, job, filename=None):
ylim = (np.min(y) - 0.1, 2)
ax[i * 3 + k, V_count].plot(xdata, y)
ax[i * 3 + k, V_count].set(
ylim=ylim, title=f"{el} {pot}", xlabel=xlabel
ylim=ylim,
title=f"{el} {pot}",
xlabel=xlabel,
)
V_count += 1

fig.tight_layout()
return fig, ax

def count_local_extrema(
Expand Down

0 comments on commit a5dfafd

Please sign in to comment.