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

Can't specify single color for `render_label` by a color string

Open ziyuanzhao2000 opened this issue 6 months ago • 1 comments

Please see the simple MWE:

import spatialdata as sd
from spatialdata.models import Labels2DModel
sdata_test = sd.SpatialData()
labels = np.ones((10, 10), dtype=np.uint8)
sdata_test['labels'] = Labels2DModel.parse(labels)
sdata_test.pl.render_labels('labels', color='green').pl.show()

However, I cannot specify the label mask to be rendered in green...

This is what I get Image

ziyuanzhao2000 avatar Jun 03 '25 23:06 ziyuanzhao2000