Skip to content

Can't specify single color for render_label by a color string #470

@ziyuanzhao2000

Description

@ziyuanzhao2000

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglabels 🏷️Anything related to Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions