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

Update Colorizer/ColorizingArtist to work with MultiNorm#30511

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
trygvrad wants to merge2 commits intomatplotlib:main
base:main
Choose a base branch
Loading
fromtrygvrad:colorizer-multinorm

Conversation

trygvrad
Copy link
Contributor

@trygvradtrygvrad commentedSep 3, 2025
edited
Loading

EDIT: closes#30511

This PR continues the work of#28658 and#28454,#29876, aiming toclose#14168. (Feature request: Bivariate colormapping)

This PR allows Colorizer and ColorizingArtist to work withMultiNorm andBivarColormap andMultivarColormap

i.e. this PR will allow:

importmatplotlib.pyplotaspltimportnumpyasnpimportmatplotlibasmpla=np.arange(12).reshape(3,4)b=np.arange(12).reshape(4,3).Tnorm=mpl.colors.Normalize(vmin=0,vmax=11)col=mpl.colorizer.Colorizer(cmap='BiOrangeBlue',norm=[norm,norm])plt.imshow(col.to_rgba((a,b)))
image

Features not included in this PR:

  • Exposes the functionality provided by MultiNorm together with BivarColormap and MultivarColormap to the plotting functionsaxes.imshow(...),axes.pcolor(...), andaxes.pcolormesh(...)`
  • fig.colorbar() equivalents for BivarColormap and MultivarColormap
  • Examples in the docs

PR checklist

  • new and changed code istested

@trygvrad
Copy link
ContributorAuthor

Thank you for the feedback@QuLogic and apologies for my sloppy mistakes :)

improved testing for colorizer+multinormApply suggestions from code reviewCo-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>updates based on feedback from@QuLogic
Copy link
Member

@QuLogicQuLogic left a comment

Choose a reason for hiding this comment

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

As I mentioned on the call, I think this looks okay from a low-level point-of-view, but I am at this point uncertain as to the high-level status. I hope someone more familiar with the current state can confirm.

PS,@trygvrad if you have some time to pop in to the call, it would be good to just re-iterate the current state succinctly, as I'm not sure everyone is up-to-speed right now.

@trygvradtrygvrad mentioned this pull requestSep 24, 2025
2 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

Assignees
No one assigned
Projects
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Feature request: Bivariate colormapping
2 participants
@trygvrad@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp