Skip to content

Commit a83fba1

Browse files
committed
consistent thresholds
1 parent c11b512 commit a83fba1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ovrlpy/_plotting.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
)
3232

3333
VSI = "vertical signal integrity"
34+
_SIGNAL_THRESHOLD = 2
3435

3536

3637
def _plot_scalebar(ax: Axes, dx: float = 1, units="um", **kwargs):
@@ -267,7 +268,7 @@ def _plot_signal_integrity(
267268
def plot_signal_integrity(
268269
ovrlp: Ovrlp,
269270
*,
270-
signal_threshold: float = 2.0,
271+
signal_threshold: float = _SIGNAL_THRESHOLD,
271272
cmap: str | Colormap = BIH_CMAP,
272273
histogram: bool = True,
273274
scalebar: dict | None = SCALEBAR_PARAMS,
@@ -355,7 +356,7 @@ def plot_region_of_interest(
355356
y: float,
356357
*,
357358
window_size: int = 30,
358-
signal_threshold: float = 5.0,
359+
signal_threshold: float = _SIGNAL_THRESHOLD,
359360
scalebar: dict | None = SCALEBAR_PARAMS,
360361
figsize: tuple[float, float] = (12, 8),
361362
**kwargs,

0 commit comments

Comments
 (0)