Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix linewidths and colors for scatter() with unfilled markers#17543

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

Merged
efiring merged 2 commits intomatplotlib:masterfromtimhoffm:unfilled-markers
Jun 4, 2020

Conversation

@timhoffm
Copy link
Member

@timhoffmtimhoffm commentedMay 31, 2020
edited
Loading

PR Summary

Fixes:

Closes#17527.

@QuLogic
Copy link
Member

A rebase will fix Travis.

Copy link
Member

@efiringefiring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks good apart from a possible inconsistency between the new behavior and the docstring.

@efiringefiring merged commit16ae71f intomatplotlib:masterJun 4, 2020
@QuLogicQuLogic added this to thev3.3.0 milestoneJun 4, 2020
@timhoffmtimhoffm deleted the unfilled-markers branchJune 5, 2020 08:43
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestJul 7, 2020
Even though we are going to ignore it, set the facecolors to the userspecified color and edgecolor to 'face' to maintainback-compatibility.We now warn if the user passes in an edgecolor that we ignore.closesmatplotlib#17849partially revertsmatplotlib#17543 /d86cc2b
QuLogic added a commit to QuLogic/matplotlib that referenced this pull requestJul 8, 2020
QuLogic added a commit to QuLogic/matplotlib that referenced this pull requestJul 9, 2020
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestNov 11, 2020
Even though we are going to ignore it, set the facecolors to the userspecified color and edgecolor to 'face' to maintainback-compatibility.We now warn if the user passes in an edgecolor that we ignore.closesmatplotlib#17849partially revertsmatplotlib#17543 /d86cc2b
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestNov 24, 2020
This is brittle, but matches the behavior in Line2D.MarkerStyle objects have two coupled, but not fully redundant methodsfor determining if the maker is filled: the `is_filled` and`get_fillstyle` methods.  If `ms.get_fillstyle() == 'none'` then`ms.is_filled() is False`, however the converse is not True.  Inparticular the markers that can not be filled (because the Paths theyare made out of can not be closed) have `ms.get_fillstyle() == 'full'`and `ms.is_filled() is False`.  In Line2D we filter on the value of`get_fillstyle` not on `is_filled` so do the same in `Axes.scatter`.In Line2D we do the validation at draw time (because Line2D holds ontoits MarkerStyle object instead of just extracting the path).The logic for fillstyle on Markers came in viamatplotlib#447/213459e.closesmatplotlib#17849Revisesmatplotlib#17543 /d86cc2b
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestNov 24, 2020
This is brittle, but matches the behavior in Line2D.MarkerStyle objects have two coupled, but not fully redundant methodsfor determining if the maker is filled: the `is_filled` and`get_fillstyle` methods.  If `ms.get_fillstyle() == 'none'` then`ms.is_filled() is False`, however the converse is not True.  Inparticular the markers that can not be filled (because the Paths theyare made out of can not be closed) have `ms.get_fillstyle() == 'full'`and `ms.is_filled() is False`.  In Line2D we filter on the value of`get_fillstyle` not on `is_filled` so do the same in `Axes.scatter`.In Line2D we do the validation at draw time (because Line2D holds ontoits MarkerStyle object instead of just extracting the path).The logic for fillstyle on Markers came in viamatplotlib#447/213459e.closesmatplotlib#17849Revisesmatplotlib#17543 /d86cc2b
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestJan 21, 2021
This is brittle, but matches the behavior in Line2D.MarkerStyle objects have two coupled, but not fully redundant methodsfor determining if the maker is filled: the `is_filled` and`get_fillstyle` methods.  If `ms.get_fillstyle() == 'none'` then`ms.is_filled() is False`, however the converse is not True.  Inparticular the markers that can not be filled (because the Paths theyare made out of can not be closed) have `ms.get_fillstyle() == 'full'`and `ms.is_filled() is False`.  In Line2D we filter on the value of`get_fillstyle` not on `is_filled` so do the same in `Axes.scatter`.In Line2D we do the validation at draw time (because Line2D holds ontoits MarkerStyle object instead of just extracting the path).The logic for fillstyle on Markers came in viamatplotlib#447/213459e.closesmatplotlib#17849Revisesmatplotlib#17543 /d86cc2b
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestJan 22, 2021
This is brittle, but matches the behavior in Line2D.MarkerStyle objects have two coupled, but not fully redundant methodsfor determining if the maker is filled: the `is_filled` and`get_fillstyle` methods.  If `ms.get_fillstyle() == 'none'` then`ms.is_filled() is False`, however the converse is not True.  Inparticular the markers that can not be filled (because the Paths theyare made out of can not be closed) have `ms.get_fillstyle() == 'full'`and `ms.is_filled() is False`.  In Line2D we filter on the value of`get_fillstyle` not on `is_filled` so do the same in `Axes.scatter`.In Line2D we do the validation at draw time (because Line2D holds ontoits MarkerStyle object instead of just extracting the path).The logic for fillstyle on Markers came in viamatplotlib#447/213459e.closesmatplotlib#17849Revisesmatplotlib#17543 /d86cc2bCo-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestJan 29, 2021
This is brittle, but matches the behavior in Line2D.MarkerStyle objects have two coupled, but not fully redundant methodsfor determining if the maker is filled: the `is_filled` and`get_fillstyle` methods.  If `ms.get_fillstyle() == 'none'` then`ms.is_filled() is False`, however the converse is not True.  Inparticular the markers that can not be filled (because the Paths theyare made out of can not be closed) have `ms.get_fillstyle() == 'full'`and `ms.is_filled() is False`.  In Line2D we filter on the value of`get_fillstyle` not on `is_filled` so do the same in `Axes.scatter`.In Line2D we do the validation at draw time (because Line2D holds ontoits MarkerStyle object instead of just extracting the path).The logic for fillstyle on Markers came in viamatplotlib#447/213459e.closesmatplotlib#17849Revisesmatplotlib#17543 /d86cc2bCo-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>Co-authored-by: Jody Klymak <jklymak@gmail.com>Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@efiringefiringefiring approved these changes

@QuLogicQuLogicQuLogic approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

v3.3.0

Development

Successfully merging this pull request may close these issues.

The markers are not hollow when I use ax.scatter() and set markers.MarkerStyle()'s fillstyle to 'none'. My usage is wrong?

4 participants

@timhoffm@QuLogic@efiring@jklymak

[8]ページ先頭

©2009-2025 Movatter.jp