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: uses scatter markers with facecolor = 'none'#30671

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

Open
cairibep wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
fromcairibep:fix/empty_markers_scatter

Conversation

@cairibep
Copy link

PR Summary

Fix the bug described in#24404, in which thescatter function did not respect thefacecolors='none' option, resulting in filled markers even when the user only wanted an outline. Since there are logs reporting the possibility that thec parameter inscatter() might fail to overridefacecolor, this implementation accounts for this possibility.

Why is this change necessary?

Thefacecolors='none' option should produce hollow (unfilled) markers, but the current behavior ignored this setting, filling the markers with the default color.

What problem does it solve? Allowsplt.scatter(..., facecolors='none') to correctly draw empty markers—that is, with only the outline visible, as expected and as per the documentation.

What is the reason for this implementation?

The implementation adjusts the internal handling offacecolors inPathCollection, ensuring that the valuenone is interpreted correctly and the fill is omitted.

Minimal Example

frommatplotlib.pylabimport*x=arange(0,10)scatter(x,x,c=x,facecolors='none')show()

Old output:
image

Result with modification:
saida

Operating system

windows

Matplotlib Version

latest

Python version

3.11

@QuLogic
Copy link
Member

There are linting errors, but more importantly, it appears you've removed very large chunks of existing support, which breaks the tests, and would not be wanted.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@cairibep@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp