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

Image options#5469

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
mdboom merged 1 commit intomatplotlib:masterfromanntzer:image-options
Dec 16, 2015
Merged

Image options#5469

mdboom merged 1 commit intomatplotlib:masterfromanntzer:image-options
Dec 16, 2015

Conversation

anntzer
Copy link
Contributor

This patch allows the user to interactively set an image's colormap from the "axes and lines (and now images) parameters editor" (in the Qt backend).

Colormaps are listed from those registered with matplotlib.cm. Colorbars seem to be handled properly.

Note: this patch builds onto my previous PR,#5342 (also involving the options editor). If#5342 gets rejected I will split out the specifics of this PR.

@mdboommdboom added this to theproposed next point release (2.1) milestoneNov 18, 2015
@tacaswell
Copy link
Member

👍 This now needs a re-base due to merging#5342

Only suggestion would be to filter out the*_r colormaps and add a 'reverse' check box.

@anntzer
Copy link
ContributorAuthor

Is there a generic way to get the reverse of a colormap? The current colormap could be a user-defined one, in which case it needs to be available in the combobox, but then the user may pick to use its reversed form instead, in which case I need to generate that colormap on the fly.
It does seem to be a good idea though.

@tacaswell
Copy link
Member

There was some discussion of adding such a method, but I don't think it went anywhere. Incm.py there are functions that are used to reverse the specifications (and are how we generate the*_r color maps, but I do not know if they can be made to work on a generic color map.

If the checkbox is going to take more than 15min, I would say skip it for this PR.

@anntzer
Copy link
ContributorAuthor

I'd say it will :-) (specifically for this part, the rest is not that hard)

@anntzer
Copy link
ContributorAuthor

Kindly bumping the issue. (If there's no easy way to reverse a cmap I'll skip that functionality for now.)

@mdboom
Copy link
Member

Seems fine, but this needs a rebase on current master.

@anntzer
Copy link
ContributorAuthor

Done (with no rebase conflict).

This patch allows the user to interactively set an image's colormap from theaxes and lines (and now images) parameters editor (in the Qt backend).Colormaps are listed from those registered with matplotlib.cm.  Colorbars seemto be handled properly.
mdboom added a commit that referenced this pull requestDec 16, 2015
@mdboommdboom merged commit590f042 intomatplotlib:masterDec 16, 2015
@anntzeranntzer deleted the image-options branchDecember 16, 2015 19:25
@QuLogicQuLogic modified the milestones:2.0 (style change major release),2.1 (next point release)Jul 10, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
v2.0.0
Development

Successfully merging this pull request may close these issues.

4 participants
@anntzer@tacaswell@mdboom@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp