spatialdata-plot icon indicating copy to clipboard operation
spatialdata-plot copied to clipboard

Plot image in grayscale

Open grst opened this issue 1 year ago • 2 comments

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?

grst avatar Jan 20 '25 14:01 grst

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.

LucaMarconato avatar Jan 20 '25 15:01 LucaMarconato

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 🤔

timtreis avatar Jan 20 '25 16:01 timtreis