Skip to content

Commit 7dcccf0

Browse files
timtreisclaude
andcommitted
Add tests for outline_color in render_labels
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3bc8a0e commit 7dcccf0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/pl/test_render_labels.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ def test_plot_can_color_by_hex_with_alpha(self, sdata_blobs: SpatialData):
9696
def test_plot_alpha_overwrites_opacity_from_color(self, sdata_blobs: SpatialData):
9797
sdata_blobs.pl.render_labels("blobs_labels", color=[0.5, 0.5, 1.0, 0.5], fill_alpha=1.0).pl.show()
9898

99+
def test_plot_can_render_outline_color(self, sdata_blobs: SpatialData):
100+
sdata_blobs.pl.render_labels("blobs_labels", outline_alpha=1, fill_alpha=0, outline_color="red").pl.show()
101+
102+
def test_plot_can_render_outline_with_fill(self, sdata_blobs: SpatialData):
103+
sdata_blobs.pl.render_labels("blobs_labels", outline_alpha=1, fill_alpha=0.3, outline_color="white").pl.show()
104+
99105
def test_plot_can_color_labels_by_continuous_variable(self, sdata_blobs: SpatialData):
100106
sdata_blobs.pl.render_labels("blobs_labels", color="channel_0_sum").pl.show()
101107

0 commit comments

Comments
 (0)