scverse / napari-spatialdata

Interactive visualization of spatial omics data
https://spatialdata.scverse.org/projects/napari/en/latest/
BSD 3-Clause "New" or "Revised" License
36 stars 14 forks source link

colormap is not considered using napari squidpy plugin #25

Open sophieRAIBAUD opened 2 years ago

sophieRAIBAUD commented 2 years ago

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

```pytb ... ```

Version

...

giovp commented 1 year ago

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

sophieRAIBAUD commented 1 year ago

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

giovp commented 1 year ago

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

sophieRAIBAUD commented 1 year ago

many thanks !!

giovp commented 1 year ago

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 ?

sophieRAIBAUD commented 1 year ago

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

sophieRAIBAUD commented 1 year ago

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 commented 1 year ago

image