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

Skip to content

Commit bd86363

Browse files
author
Sam Vaughan
committed
removed linesin example 1 and added plt.show
1 parent 8ed5e63 commit bd86363

File tree

1 file changed

+1
-5
lines changed
  • examples/lines_bars_and_markers

1 file changed

+1
-5
lines changed

examples/lines_bars_and_markers/fill.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616

1717
fig, ax = plt.subplots()
1818
ax.fill(x, y)
19-
# Outline of the region we've filled in
20-
ax.plot([x[0], x[1]], [y[0], y[1]], c='k', linewidth=2.0)
21-
ax.plot([x[1], x[2]], [y[1], y[2]], c='k', linewidth=2.0)
22-
ax.plot([x[2], x[3]], [y[2], y[3]], c='k', linewidth=2.0)
23-
ax.plot([x[3], x[0]], [y[3], y[0]], c='k', linewidth=2.0)
19+
plt.show()
2420

2521
###############################################################################
2622
# Next, a few more optional features:

0 commit comments

Comments
 (0)