Skip to content

Commit b5fd1ac

Browse files
committed
add test
1 parent 7bb067f commit b5fd1ac

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

22 KB
Loading

tests/pl/test_render_shapes.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,3 +446,13 @@ def test_plot_datashader_can_transform_circles(self, sdata_blobs: SpatialData):
446446
_set_transformations(sdata_blobs["blobs_circles"], {"global": seq})
447447

448448
sdata_blobs.pl.render_shapes("blobs_circles", method="datashader", outline_alpha=1.0).pl.show()
449+
450+
def test_plot_can_do_non_matching_table(self, sdata_blobs: SpatialData):
451+
table_shapes = sdata_blobs["table"][:3].copy()
452+
table_shapes.obs.instance_id = list(range(3))
453+
table_shapes.obs["region"] = "blobs_circles"
454+
table_shapes.uns["spatialdata_attrs"]["region"] = "blobs_circles"
455+
sdata_blobs["new_table"] = table_shapes
456+
457+
sdata_blobs.pl.render_shapes("blobs_circles", color="instance_id").pl.show()
458+

0 commit comments

Comments
 (0)