Skip to content

Commit

Permalink
Merge pull request #2182 from CompRhys/3daxes
Browse files Browse the repository at this point in the history
fix: update matplotlib 3daxes to use modern api.
  • Loading branch information
shyuep committed Jun 28, 2021
2 parents 8c96e7a + 5420e90 commit 28d2223
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pymatgen/analysis/phase_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -2056,11 +2056,10 @@ def _get_3d_plot(self, label_stable=True):
machines have matplotlib installed, I have done it this way.
"""
import matplotlib.pyplot as plt
import mpl_toolkits.mplot3d.axes3d as p3
from matplotlib.font_manager import FontProperties

fig = plt.figure()
ax = p3.Axes3D(fig)
ax = fig.add_subplot(111, projection="3d")
font = FontProperties(weight="bold", size=13)
(lines, labels, unstable) = self.pd_plot_data
count = 1
Expand Down

0 comments on commit 28d2223

Please sign in to comment.