Skip to content

Commit 5184e56

Browse files
committed
fix: spiral.py: works with latest matplotlib
1 parent d41ef3a commit 5184e56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/spiral.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@gif.frame
1111
def plot_spiral(i):
1212
fig = plt.figure(figsize=(5, 3), dpi=100)
13-
ax = fig.gca(projection="3d")
13+
ax = fig.add_subplot(projection="3d")
1414
a, b = 0.5, 0.2
1515
th = np.linspace(475, 500, N)
1616
x = a * np.exp(b * th) * np.cos(th)

0 commit comments

Comments
 (0)