f742f0a9ae6c7b4b92fac3dbe3a037eba00dabb0,examples/lines_bars_and_markers/fill.py,,,#,11

Before Change


fig, ax = plt.subplots()

ax.fill(x, y, zorder=10)
ax.grid(True, zorder=5)

x = np.linspace(0, 2 * np.pi, 500)
y1 = np.sin(x)
y2 = np.sin(3 * x)

After Change


ax.plot(x, y1, c="b", alpha=0.8)
ax.plot(x, y2, c="r", alpha=0.8)
ax.plot([x[0], x[-1]], [y1[0], y1[-1]], c="b", alpha=0.8)
ax.plot([x[0], x[-1]], [y2[0], y2[-1]], c="r", alpha=0.8)

plt.show()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: matplotlib/matplotlib
Commit Name: f742f0a9ae6c7b4b92fac3dbe3a037eba00dabb0
Time: 2018-04-12
Author: jklymak@gmail.com
File Name: examples/lines_bars_and_markers/fill.py
Class Name:
Method Name:


Project Name: autoreject/autoreject
Commit Name: beeddd09c5550a13447104d282f2dbc756620e52
Time: 2018-05-05
Author: denis.engemann@gmail.com
File Name: examples/plot_auto_repair.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 8ed5e6357a15a7ab3d688e120dde66759128766a
Time: 2018-04-10
Author: sam.vaughan@physics.ox.ac.uk
File Name: examples/lines_bars_and_markers/fill.py
Class Name:
Method Name: