Skip to content

Commit 048631a

Browse files
committed
Set transform also to labels_contour
1 parent 72ef587 commit 048631a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/spatialdata_plot/pl/render.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,14 +656,15 @@ def _render_labels(
656656
na_color=render_params.cmap_params.na_color,
657657
)
658658

659-
_cax = ax.imshow(
659+
_cax_contour = ax.imshow(
660660
labels_contour,
661661
rasterized=True,
662662
cmap=None if categorical else render_params.cmap_params.cmap,
663663
norm=None if categorical else render_params.cmap_params.norm,
664664
alpha=render_params.outline_alpha,
665665
origin="lower",
666666
)
667+
_cax_contour.set_transform(trans_data)
667668
_cax = ax.imshow(
668669
labels_infill,
669670
rasterized=True,

0 commit comments

Comments
 (0)