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

Skip to content

Fix slider widget polygon #576

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

Merged
merged 3 commits into from
Dec 14, 2011
Merged

Fix slider widget polygon #576

merged 3 commits into from
Dec 14, 2011

Conversation

cgohlke
Copy link
Contributor

@cgohlke cgohlke commented Nov 10, 2011

This attempts to fix the Slider widget. When moving the sliders in slider_demo.py the blue polygons change to triangles. Similar, if valmin == valinit when the Slider widget is initialized, the polygon is truncated and becomes a triangle. Not sure yet if this patch has unwanted side effects.

mdboom added a commit to mdboom/matplotlib that referenced this pull request Nov 10, 2011
…ce it doesn't circumvent the Polygon.set_closed method. axhspan and axvspan should have been declared closed all along.
@mdboom mdboom mentioned this pull request Nov 10, 2011
@mdboom
Copy link
Member

mdboom commented Nov 10, 2011

Thanks for tracking this down. I propose an alternative in #581 that doesn't change the behavior (or rather circumvent the existing behavior) of Polygon.set_closed(). The solution is primarily to declare axhspan and axvspan as closed (which they really should have been all along.

mdboom added a commit that referenced this pull request Dec 14, 2011
Fix slider widget polygon
@mdboom mdboom merged commit 7a43d25 into matplotlib:master Dec 14, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants