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

Ability to change color of the border of labels

Open LucaMarconato opened this issue 6 months ago • 1 comments

Currently it doesn't seem possible to change the color of the border of labels.

For instance, reported by @MeyerBender, using

sdata_zoomed.pl.render_images(channel=["DAPI"]).pl.render_labels(outline_alpha=1, fill_alpha=0, color="white").pl.show()

shows a black border (code here)

Image

while having a white border like here would be the desired output

Image

LucaMarconato avatar May 13 '25 22:05 LucaMarconato

Example code snippet:

import spatialdata as sd
import spatialdata_plot
from spatialdata.datasets import blobs

sdata = blobs()
sdata.pl.render_images(channel=0).pl.render_labels(outline_alpha=1, fill_alpha=0).pl.show()

It would be cool to have an argument like contour_color in there.

MeyerBender avatar May 14 '25 07:05 MeyerBender