Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
FIX: zero width lines need no pattern#29302
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -680,6 +680,16 @@ def test_set_wrong_linestyle(): | ||
c.set_linestyle('fuzzy') | ||
@mpl.style.context('default') | ||
def test_zero_linewidth_scaling(): | ||
c = Collection() | ||
c.set_linestyle('dashed') | ||
c.set_linewidth(0) | ||
# With a zero linewidth, there can be no pattern | ||
assert c.get_linestyle() == [(0, None)] | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Note that "solid" results in We are overall not consistent and clear what
While this fix may be ok as a workaround to fix the original issue (and doesn't make the consisteny worse), we should generally agee upon what MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Actually looking closer, I don't think the legend handler should be getting the scaled pattern - it gets scaled again on the patch, so is wrong for any linewidth != 1. I'll close this. | ||
@mpl.style.context('default') | ||
def test_capstyle(): | ||
col = mcollections.PathCollection([]) | ||
Uh oh!
There was an error while loading.Please reload this page.