From aea1b0a1e98e145424b825b2f9666e404fdccac4 Mon Sep 17 00:00:00 2001 From: Wolf Byttner Date: Sat, 6 Apr 2024 19:50:19 +0100 Subject: [PATCH] Fix deprecated gca argument --- traja/plotting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traja/plotting.py b/traja/plotting.py index c4ab66df..b5b69871 100644 --- a/traja/plotting.py +++ b/traja/plotting.py @@ -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 )