Skip to content

Document "none" as color value - #29081

Merged
timhoffm merged 1 commit into
matplotlib:mainfrom
timhoffm:doc-color-none
Nov 5, 2024
Merged

timhoffm merged 1 commit into
matplotlib:mainfrom
timhoffm:doc-color-none

Conversation

@timhoffm

@timhoffm timhoffm commented Nov 5, 2024

Copy link
Copy Markdown
Member

Noted in #29072 (comment)

@github-actions github-actions Bot added the Documentation: user guide files in galleries/users_explain or doc/users label Nov 5, 2024
@timhoffm timhoffm added this to the v3.10.0 milestone Nov 5, 2024
@tacaswell

Copy link
Copy Markdown
Member

Some backends may be more aggressive about not drawing things with color "none" or additionally mess with widths, but I think that is too much detail to put here.

@timhoffm

timhoffm commented Nov 5, 2024

Copy link
Copy Markdown
Member Author

Some backends may be more aggressive about not drawing things with color "none" or additionally mess with widths, but I think that is too much detail to put here.

That's a separate topic. matplotlib.colors.to_rgba("none") returns (0.0, 0.0, 0.0, 0.0) so it's just a special color name. I assume no backend special-cases the name "none".

@timhoffm
timhoffm merged commit 0b6222b into matplotlib:main Nov 5, 2024
@timhoffm
timhoffm deleted the doc-color-none branch November 5, 2024 18:17
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Nov 5, 2024
QuLogic added a commit that referenced this pull request Nov 5, 2024
…081-on-v3.10.x

Backport PR #29081 on branch v3.10.x (Document "none" as color value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation: user guide files in galleries/users_explain or doc/users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants