Skip to content

Commit 7b27429

Browse files
committed
DOC: update very old whats new entry to new usage
1 parent 8d10261 commit 7b27429

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/pyplots/whats_new_99_mplot3d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
Z = np.sin(R)
1818

1919
fig = plt.figure()
20-
ax = Axes3D(fig)
20+
ax = Axes3D(fig, auto_add_to_figure=False)
21+
fig.add_axes(ax)
2122
ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.viridis)
2223

2324
plt.show()

0 commit comments

Comments
 (0)