Skip to content

Commit 0b7fec2

Browse files
committed
adjusted img render params
1 parent 07d07db commit 0b7fec2

File tree

2 files changed

+382
-114
lines changed

2 files changed

+382
-114
lines changed

src/spatialdata_plot/pl/render_params.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
from matplotlib.figure import Figure
1010

1111
_FontWeight = Literal["light", "normal", "medium", "semibold", "bold", "heavy", "black"]
12-
_FontSize = Literal["xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large"]
12+
_FontSize = Literal[
13+
"xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large"
14+
]
1315

1416
# replace with
1517
# from spatialdata._types import ColorLike
@@ -90,7 +92,9 @@ class ShapesRenderParams:
9092
zorder: int = 0
9193
table_name: str | None = None
9294
table_layer: str | None = None
93-
ds_reduction: Literal["sum", "mean", "any", "count", "std", "var", "max", "min"] | None = None
95+
ds_reduction: (
96+
Literal["sum", "mean", "any", "count", "std", "var", "max", "min"] | None
97+
) = None
9498

9599

96100
@dataclass
@@ -110,7 +114,9 @@ class PointsRenderParams:
110114
zorder: int = 0
111115
table_name: str | None = None
112116
table_layer: str | None = None
113-
ds_reduction: Literal["sum", "mean", "any", "count", "std", "var", "max", "min"] | None = None
117+
ds_reduction: (
118+
Literal["sum", "mean", "any", "count", "std", "var", "max", "min"] | None
119+
) = None
114120

115121

116122
@dataclass
@@ -125,6 +131,7 @@ class ImageRenderParams:
125131
percentiles_for_norm: tuple[float | None, float | None] = (None, None)
126132
scale: str | None = None
127133
zorder: int = 0
134+
bg_threshold: float = 1e-4
128135

129136

130137
@dataclass

0 commit comments

Comments
 (0)