Skip to content

Commit

Permalink
fix(plot): fix the ymin of the grey shading (0 -> -10)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanshing committed Oct 16, 2024
1 parent ddc2b58 commit ef96cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stepcount/stepcount.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ef96cc0

Please sign in to comment.