Skip to content

Commit d728f8b

Browse files
timtreisclaude
andcommitted
Add reference images and fix labels visual test
Fix test_plot_dict_palette_hex_labels to use a hand-built dict instead of make_palette_from_data, since labels elements don't have extractable coordinates. Add 5 CI-generated reference images for palette visual tests. The hex_labels reference image will be generated on the next CI run. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dbaac8e commit d728f8b

6 files changed

Lines changed: 1 addition & 1 deletion
31.4 KB
Loading
26.6 KB
Loading
45 KB
Loading
30.6 KB
Loading
27.2 KB
Loading

tests/pl/test_palette.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def test_plot_dict_palette_hex_shapes(self, sdata_blobs: SpatialData):
495495

496496
def test_plot_dict_palette_hex_labels(self, sdata_blobs: SpatialData):
497497
"""Visual test: hex dict palette renders labels correctly."""
498-
palette = make_palette_from_data(sdata_blobs, "blobs_labels", "region", palette="okabe_ito")
498+
palette = {"blobs_labels": "#E69F00"}
499499
sdata_blobs.pl.render_labels("blobs_labels", color="region", palette=palette).pl.show()
500500

501501
def test_plot_dict_palette_named_colors_points(self, sdata_blobs: SpatialData):

0 commit comments

Comments
 (0)