Skip to content

Commit

Permalink
fix phase diagram break from 41e6d99 (#4070)
Browse files Browse the repository at this point in the history
  • Loading branch information
yang-ruoxi authored Sep 17, 2024
1 parent ebfc7a0 commit 96b3284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymatgen/analysis/phase_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -2972,7 +2972,7 @@ def _create_plotly_element_annotations(self):
for d in ["xref", "yref"]:
annotation.pop(d) # Scatter3d cannot contain xref, yref
if self._dim == 3:
annotation.update(x=x, y=y)
annotation.update(x=y, y=x)
if entry.composition.is_element:
z = 0.9 * self._min_energy # place label 10% above base

Expand Down

0 comments on commit 96b3284

Please sign in to comment.