Skip to content

Commit 1326bf5

Browse files
Sonja-StockhausSonja Stockhaus
andauthored
don't pass outline colors to _shaped_scatter() as RGBA arrays (#1006)
Co-authored-by: Sonja Stockhaus <[email protected]>
1 parent fef6966 commit 1326bf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/squidpy/pl/_spatial_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def _shaped_scatter(
497497
x: NDArrayA,
498498
y: NDArrayA,
499499
s: float,
500-
c: NDArrayA,
500+
c: NDArrayA | str,
501501
shape: _AvailShapes | ScatterShape | None = ScatterShape.CIRCLE,
502502
norm: _Normalize | None = None,
503503
**kwargs: Any,
@@ -955,7 +955,7 @@ def _plot_scatter(
955955
coords[:, 0],
956956
coords[:, 1],
957957
s=outline_params.bg_size,
958-
c=colors.to_rgba_array(outline_params.bg_color),
958+
c=outline_params.bg_color,
959959
rasterized=sc_settings._vector_friendly,
960960
cmap=cmap_params.cmap,
961961
norm=norm,
@@ -966,7 +966,7 @@ def _plot_scatter(
966966
coords[:, 0],
967967
coords[:, 1],
968968
s=outline_params.gap_size,
969-
c=colors.to_rgba_array(outline_params.gap_color),
969+
c=outline_params.gap_color,
970970
rasterized=sc_settings._vector_friendly,
971971
cmap=cmap_params.cmap,
972972
norm=norm,

0 commit comments

Comments
 (0)