Skip to content

Commit 7eb6baa

Browse files
author
Sonja Stockhaus
committed
fix shape fill_alpha=0 bug
1 parent c38767c commit 7eb6baa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spatialdata_plot/pl/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def _get_collection_shape(
356356

357357
fill_c = ColorConverter().to_rgba_array(c)
358358
# fill_c[..., -1] *= fill_alpha # NOTE: this contradicts matplotlib behavior, therefore discarded
359-
if fill_alpha:
359+
if fill_alpha is not None:
360360
fill_c[..., -1] = fill_alpha
361361

362362
if outline_alpha and outline_alpha > 0.0:

0 commit comments

Comments
 (0)