From ef96cc072993cfd187ba76c1e7c943a09fe3c290 Mon Sep 17 00:00:00 2001 From: Shing Chan Date: Wed, 16 Oct 2024 19:45:00 +0100 Subject: [PATCH] fix(plot): fix the ymin of the grey shading (0 -> -10) --- src/stepcount/stepcount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stepcount/stepcount.py b/src/stepcount/stepcount.py index c4a36fd..4811bdf 100644 --- a/src/stepcount/stepcount.py +++ b/src/stepcount/stepcount.py @@ -1132,7 +1132,7 @@ def _sum(x): ax.plot(y.index, y, label='steps/min') # Grey shading where NA - ax.fill_between(y.index, 0, MAX_STEPS_PER_MINUTE, where=y.isna(), color='grey', alpha=0.3, interpolate=True, label='missing') + ax.fill_between(y.index, -10, MAX_STEPS_PER_MINUTE, where=y.isna(), color='grey', alpha=0.3, interpolate=True, label='missing') # Formatting the x-axis to show hours and minutes ax.xaxis.set_major_locator(mdates.HourLocator(interval=1))