Skip to content

Commit

Permalink
Fix 3d plot initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
olemke committed Dec 5, 2023
1 parent 1bbe4ff commit 60daede
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/pyplots/plot_vorticity.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

from typhon.plots import figsize

fig = plt.figure(figsize=figsize(10))
ax = fig.gca(projection='3d')
fig, ax = plt.subplots(figsize=figsize(10), subplot_kw=dict(projection='3d'))
X, Y, Z = axes3d.get_test_data(0.05)
surf = ax.plot_surface(X, Y, Z, cmap='vorticity', vmin=-80, vmax=80,
rstride=1, cstride=1, linewidth=0)
Expand Down

0 comments on commit 60daede

Please sign in to comment.