9
9
from matplotlib .figure import Figure
10
10
11
11
_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
+ ]
13
15
14
16
# replace with
15
17
# from spatialdata._types import ColorLike
@@ -90,7 +92,9 @@ class ShapesRenderParams:
90
92
zorder : int = 0
91
93
table_name : str | None = None
92
94
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
94
98
95
99
96
100
@dataclass
@@ -110,7 +114,9 @@ class PointsRenderParams:
110
114
zorder : int = 0
111
115
table_name : str | None = None
112
116
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
114
120
115
121
116
122
@dataclass
@@ -125,6 +131,7 @@ class ImageRenderParams:
125
131
percentiles_for_norm : tuple [float | None , float | None ] = (None , None )
126
132
scale : str | None = None
127
133
zorder : int = 0
134
+ bg_threshold : float = 1e-4
128
135
129
136
130
137
@dataclass
0 commit comments