Skip to content

Commit

Permalink
Update plot_types/basic/fill_between.py
Browse files Browse the repository at this point in the history
Co-authored-by: hannah <[email protected]>
  • Loading branch information
timhoffm and story645 authored Sep 30, 2021
1 parent b43ace8 commit fff325c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plot_types/basic/fill_between.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
# plot
fig, ax = plt.subplots()

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

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

0 comments on commit fff325c

Please sign in to comment.