We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6afd96d commit f5f46bcCopy full SHA for f5f46bc
1 file changed
src/spatialdata_plot/pl/utils.py
@@ -607,9 +607,12 @@ def _set_outline(
607
# inner outline default color: white
608
outline_color = (outline_color, "#ffffffff")
609
if isinstance(outline_color, tuple):
610
- if len(outline_color) == 1:
+ if len(outline_color) == 4 and all(isinstance(i, float) for i in outline_color):
611
+ # may be an RGBA color tuple
612
+ outline_color = (outline_color, "#ffffffff")
613
+ elif len(outline_color) == 1:
614
# interpreted as outer outline
- outline_color = (outline_color[0], "white")
615
+ outline_color = (outline_color[0], "#ffffffff")
616
elif len(outline_color) > 2:
617
# only using first to positions
618
logger.warning(
0 commit comments