Skip to content

Commit 5627c9b

Browse files
authored
fix(points): render solid markers at small sizes (#757)
1 parent 43a0124 commit 5627c9b

16 files changed

Lines changed: 22 additions & 0 deletions

src/spatialdata_plot/pl/render.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,11 @@ def _scatter_points(
10671067
x,
10681068
y,
10691069
s=size,
1070+
# No edge stroke: matplotlib's default (edgecolors="face", linewidths=1pt) strokes each
1071+
# circle marker with a fixed points-unit ring. When the fill disk goes sub-pixel (tiny
1072+
# `size` at high dpi) only that ring survives, rendering markers as hollow outlines.
1073+
# linewidths=0 keeps them solid fills whose radius honours `size`.
1074+
linewidths=0,
10701075
rasterized=sc_settings._vector_friendly,
10711076
alpha=alpha,
10721077
transform=trans_data,
-6.61 KB
Loading
-6.76 KB
Loading
-7.34 KB
Loading
-5.72 KB
Loading
-7.31 KB
Loading
-7.44 KB
Loading
-7.37 KB
Loading
-6.74 KB
Loading
-4.76 KB
Loading

0 commit comments

Comments
 (0)