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

colormap is not considered using napari squidpy plugin

Open sophieRAIBAUD opened this issue 3 years ago • 8 comments

Description

I can not change the color map of the spatial transcriptomic data in Napari

...

Minimal reproducible example

viewer = napari.Viewer() viewer.add_image( img1, colormap='plasma', name="test", metadata={"adata": adata, "library_id": "test"}, )

colormap='plasma' is not considered

Many thanks Sophie

...

Traceback

...

Version

...

sophieRAIBAUD avatar Aug 26 '22 11:08 sophieRAIBAUD

hi @sophieRAIBAUD , which napari implementation are you using? the one in squidpy or the napari-spatialdata?

giovp avatar Sep 10 '22 11:09 giovp

I am using napari with your plugin https://github.com/scverse/napari-spatialdata

sophieRAIBAUD avatar Sep 12 '22 08:09 sophieRAIBAUD

great, I moved the issue in the appropriate repository. Will keep it open, we'll take a look!

giovp avatar Sep 12 '22 09:09 giovp

many thanks !!

sophieRAIBAUD avatar Sep 12 '22 09:09 sophieRAIBAUD

hi @sophieRAIBAUD , one quick question, the colormap you want to change is the one used for plotting the continuos values on the circles overlaying the image right? which should be the same as the one for the colorbar on the bottom left pasrt of the GUI ?

giovp avatar Sep 12 '22 09:09 giovp

yes : image I would prefer 'magma' or 'plasma' or whatever

sophieRAIBAUD avatar Sep 12 '22 09:09 sophieRAIBAUD

I am also strugglingwith the scale: normally 1 spot = 55µm distance between spots = 100µm in napari I get: image

depite typing viewer.scale_bar.visible = True viewer.scale_bar.unit = "µm" Thanks again for the greatfull help !!

sophieRAIBAUD avatar Sep 12 '22 09:09 sophieRAIBAUD

image

sophieRAIBAUD avatar Sep 12 '22 09:09 sophieRAIBAUD