Skip to content

Commit

Permalink
fix for deprecation
Browse files Browse the repository at this point in the history
in Matplotlib>=3.4 gca not accepting argument anymore)

many thanks to Guo Gangyz for pointing out this deprecation
  • Loading branch information
nikolasibalic committed May 19, 2024
1 parent 1eb1342 commit 9b33b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arc/calculations_atom_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def plot3D(
units=units,
)
fig = plt.figure(figsize=(6, 4))
ax = fig.gca(projection="3d")
ax = fig.add_subplot(projection="3d")
ax.view_init(40, -35)

# Plot the surface.
Expand Down

0 comments on commit 9b33b04

Please sign in to comment.