Skip to content

Commit

Permalink
Fix y-axis label of 2D phase diagrams.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed May 11, 2020
1 parent 53bbc71 commit 4e138b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymatgen/analysis/phase_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,7 @@ def _get_2d_plot(self, label_stable=True, label_unstable=True,
plt.ylim((miny - ybuffer, ybuffer))
center = (0.5, miny / 2)
plt.xlabel("Fraction", fontsize=28, fontweight='bold')
plt.ylabel("Formation energy (eV/fu)", fontsize=28,
plt.ylabel("Formation energy (eV/atom)", fontsize=28,
fontweight='bold')

for coords in sorted(labels.keys(), key=lambda x: -x[1]):
Expand Down

0 comments on commit 4e138b9

Please sign in to comment.