| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Thanks for the update. I don't find the polygon particularly instructive:
maybe simply x = [0, 1, 3, 1] y = [1, 2, 1, 0] fig, ax = plt.subplots() ax.fill(x, y) Minor things:
|
Sorry, something went wrong.
|
Sure, no problem. I've removed the grid and made the first example a square x = [0, 1, 2, 1] y = [1, 2, 1, 0] fig, ax = plt.subplots() ax.fill(x, y) and outlined it in black with plt.plot(). I've removed the double spaces too. |
Sorry, something went wrong.
|
Sorry, I didn't mean plt.plot() but plt.show(). My bad. The outline does not add extra information in this first example. It's sufficient to illustrate this in the second example. |
Sorry, something went wrong.
|
No worries, just changed it! |
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
Backport PR #11009 on branch v2.2.2-doc
| Back | FazBrowse Home | New Git URL |
PR Summary
I've changed /examples/lines_bars_and_markers/fill.py to be less misleading, following issues #5827 and #7956.
These plots were over-simplified because fill was acting just like fill_between, since the final line of the region to be filled was completely along the x-axis. I've changed the first example to be a simple polygon (as suggested in #5827) and the second to not have the final point at y=0 anymore. I've also outlined the region being filled, to make what's going on more obvious.
PR Checklist