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: Handle masked arrays for RGBA input with ScalarMappables#26096

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
rcomer merged 1 commit intomatplotlib:mainfromgreglucas:sm-masked-rgba
Jun 10, 2023

Conversation

greglucas
Copy link
Contributor

PR summary

Currently, the mask is ignored if a user passes in RGB(A) input arrays. This sets the alpha channel to 0 when any RGB(A) input is masked. This is relevant for RGB(A) data being used with pcolormesh. xref:SciTools/cartopy#2166 where it will simplify downstream accounting for masks and alpha.

PR checklist

Copy link
Member

@tacaswelltacaswell left a comment

Choose a reason for hiding this comment

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

This needs an API change note.

I'm sure we have at least one user who is relying on the mask being ignored!

I do not think this needs a deprecation cycle (as I suspect "just document it" was to avoid fixing a bug).

This sets the alpha channel to 0 when any RGB(A) input is masked.
@greglucas
Copy link
ContributorAuthor

👍 Added a change note now.

Copy link
Member

@rcomerrcomer left a comment

Choose a reason for hiding this comment

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

Thank you for doing this@greglucas!

I have also verified that it enables the hoped for simplification of my Cartopy branch.

@rcomerrcomer merged commit5258ffc intomatplotlib:mainJun 10, 2023
@greglucasgreglucas deleted the sm-masked-rgba branchJune 10, 2023 12:10
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

@rcomerrcomerrcomer approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.8.0
Development

Successfully merging this pull request may close these issues.

3 participants
@greglucas@tacaswell@rcomer

[8]ページ先頭

©2009-2025 Movatter.jp