FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix slider widget polygon by cgohlke · Pull Request #576 · matplotlib/matplotlib · GitHub

Repository navigation

Fix slider widget polygon - #576

Merged
mdboom merged 3 commits into
matplotlib:masterfrom
cgohlke:patch-6
Dec 14, 2011
Merged

mdboom merged 3 commits into
matplotlib:masterfrom
cgohlke:patch-6

Conversation

cgohlke commented Nov 10, 2011

Copy link
Copy Markdown
Contributor

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 mentioned this pull request Nov 10, 2011

mdboom commented Nov 10, 2011

Copy link
Copy Markdown
Member

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
mdboom merged commit 7a43d25 into matplotlib:master Dec 14, 2011
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL