Skip to content
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

Plot image in grayscale #407

Open
grst opened this issue Jan 20, 2025 · 2 comments
Open

Plot image in grayscale #407

grst opened this issue Jan 20, 2025 · 2 comments
Labels
enhancement New feature or request images 🖼️ Anything related to Images

Comments

@grst
Copy link
Contributor

grst commented Jan 20, 2025

scanpy.pl.spatial has a argument bw=True that allows to plot a background image in grayscale. I find that useful when plotting shapes on top of an image because the pink H&E image can distract from the color scale of the shapes.

Would it be worth adding such a functionality to spatialdata_plot.pl.render_imges? Or would you recommend adding a b/w-transformed image to the spatialdata object instead?

@LucaMarconato
Copy link
Member

LucaMarconato commented Jan 20, 2025

Thanks for the suggestion. I think adding a b/w-transformed image to the spatialdata object is an extra step that we could avoided. Leaving the comment on the preferred approach to @Sonja-Stockhaus and @timtreis.

@timtreis timtreis added enhancement New feature or request images 🖼️ Anything related to Images labels Jan 20, 2025
@timtreis
Copy link
Member

I think adding a b/w-transformed image to the spatialdata object is an extra step that we could avoided.

Agree on this. I like the idea 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request images 🖼️ Anything related to Images
Projects
None yet
Development

No branches or pull requests

3 participants