Skip to content

Commit

Permalink
Fix deprecated gca argument
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfByttner committed Apr 6, 2024
1 parent 963b4b8 commit aea1b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traja/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ def plot_surface(
Z = np.sqrt(U * U + V * V)

fig = plt.figure()
ax = fig.gca(projection="3d")
ax = fig.add_subplot(projection='3d')
ax.plot_surface(
X, Y, Z, cmap= cmap, linewidth=0, **surfaceplot_kws
)
Expand Down

0 comments on commit aea1b0a

Please sign in to comment.