Skip to content

Commit fff325c

Browse files
timhoffmstory645
andauthored
Update plot_types/basic/fill_between.py
Co-authored-by: hannah <story645@gmail.com>
1 parent b43ace8 commit fff325c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plot_types/basic/fill_between.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
# plot
2121
fig, ax = plt.subplots()
2222

23-
plt.fill_between(x, y1, y2, alpha=.5, linewidth=0)
24-
plt.plot(x, (y1 + y2)/2, linewidth=2)
23+
ax.fill_between(x, y1, y2, alpha=.5, linewidth=0)
24+
ax.plot(x, (y1 + y2)/2, linewidth=2)
2525

2626
ax.set(xlim=(0, 8), xticks=np.arange(1, 8),
2727
ylim=(0, 8), yticks=np.arange(1, 8))

0 commit comments

Comments
 (0)