New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed fill.py example to be less misleading #11009
Conversation
Thanks for the update. I don't find the polygon particularly instructive:
maybe simply
Minor things:
|
Sure, no problem. I've removed the grid and made the first example a square
and outlined it in black with |
Sorry, I didn't mean |
No worries, just changed it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backport PR #11009 on branch v2.2.2-doc
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