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

napari can only save the first shape

Open wangjiawen2013 opened this issue 1 year ago • 1 comments

Hi, When I added multiple shapes using napari-spatialdata, I found only the first shape were saved in spataildata object: image

The second and third shapes cannot be displayed in jupyter notebook: image

wangjiawen2013 avatar Jul 12 '24 03:07 wangjiawen2013

Hmm I will have a look, in the meantime you could try adding the shapes with the annotation widget (in the plugin menu). With the widget open and 1 element from spatialdata, open a shapes layer and press the button link to spatialdata. Then you can add annotation classes, specify the colors and also change name of an annotation class by clicking on the text. At the bottom of the widget you also find a button to save back to spatialdata

melonora avatar Jul 12 '24 11:07 melonora