Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b0b534

Browse files
committed
updated line lenght and added a single space after the comma in the fill_between method
1 parent f5459d1 commit 8b0b534

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

examples/pyplots/whats_new_98_4_fill_between.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
=============================
33
Whats New 0.98.4 Fill Between
44
=============================
5-
generates an example of using the fill_between() method with opposing two quadratics
5+
generates an example of using the fill_between() method with opposing
6+
two quadratics
67
"""
78
import matplotlib.pyplot as plt
89
import numpy as np
@@ -13,8 +14,8 @@
1314

1415
fig, ax = plt.subplots()
1516
ax.plot(x, y1, x, y2, color='black')
16-
ax.fill_between(x, y1, y2, where=y2>y1, facecolor='yellow',alpha=0.5)
17-
ax.fill_between(x, y1, y2, where=y2<=y1, facecolor='red',alpha=0.5)
17+
ax.fill_between(x, y1, y2, where=y2>y1, facecolor='yellow', alpha=0.5)
18+
ax.fill_between(x, y1, y2, where=y2<=y1, facecolor='red', alpha=0.5)
1819
ax.set_title('Highlight Between and Intercept')
1920

2021
plt.show()

0 commit comments

Comments
 (0)