Skip to content

Commit c11b100

Browse files
committed
changed test colors
1 parent d52fbf2 commit c11b100

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ tests/figures/
4444
# other
4545
_version.py
4646
/temp/
47+
48+
# pixi
49+
pixi.lock

tests/pl/test_render_labels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def test_plot_respects_custom_colors_from_uns_with_groups_and_palette(
383383
"blobs_labels",
384384
color="category",
385385
groups=["a", "b"],
386-
palette=["#111111", "#222222"],
386+
palette=["red", "blue"],
387387
).pl.show()
388388

389389

tests/pl/test_render_shapes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def test_plot_respects_custom_colors_from_uns(self, sdata_blobs: SpatialData):
627627
categories[:3] = ["a", "b", "c"]
628628
categories = pd.Categorical(categories, categories=["a", "b", "c"])
629629
sdata_blobs["table"].obs["category"] = categories
630-
sdata_blobs["table"].uns["category_colors"] = ["#800080", "#008000", "#FFFF00"] # purple, green, yellow
630+
sdata_blobs["table"].uns["category_colors"] = ["red", "green", "blue"] # purple, green, yellow
631631

632632
sdata_blobs.pl.render_shapes(shapes_name, color="category", table_name="table").pl.show()
633633

@@ -642,9 +642,9 @@ def test_plot_respects_custom_colors_from_uns_dict(self, sdata_blobs: SpatialDat
642642
categories = pd.Categorical(categories, categories=["a", "b", "c"])
643643
sdata_blobs["table"].obs["category"] = categories
644644
sdata_blobs["table"].uns["category_colors"] = {
645-
"a": "#800080",
646-
"b": "#008000",
647-
"c": "#FFFF00",
645+
"a": "red",
646+
"b": "green",
647+
"c": "blue",
648648
}
649649

650650
sdata_blobs.pl.render_shapes(shapes_name, color="category", table_name="table").pl.show()

0 commit comments

Comments
 (0)