Skip to content

allow getting and setting cmaps in image widget #320

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2023
Merged

Conversation

kushalkolar
Copy link
Member

Usage:

iw.cmap

# returns list of cmaps, one item per subplot/managed graphic in image widget

# set specific subplot managed graphics
iw.cmap = ["gray", "gnuplot2"]

# set all
iw.cmap = "viridis"

After #166 is done we can make it easier to set cmaps in individual subplots for image graphics, but I think this will still be useful for image widget ever after we have that.

@kushalkolar kushalkolar requested a review from clewis7 October 13, 2023 23:10
@kushalkolar kushalkolar marked this pull request as ready for review October 13, 2023 23:10
@kushalkolar kushalkolar merged commit 32db614 into master Oct 14, 2023
@kushalkolar kushalkolar deleted the iw-cmap branch October 19, 2023 03:26
Copy link
Member

@clewis7 clewis7 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy