From 711275405529ebeafef6dbade6e5be98494ba870 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 26 Aug 2021 08:32:22 +0200 Subject: [PATCH] catch angle histogram bug fix --- rowers/interactiveplots.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 4aa4b693..3250d4a1 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -2153,8 +2153,12 @@ def interactive_histoall(theworkouts,histoparam,includereststrokes, # throw out nans histopwr = histopwr[~np.isinf(histopwr)] - histopwr = histopwr[histopwr > yaxminima[histoparam]] - histopwr = histopwr[histopwr < yaxmaxima[histoparam]] + if histoparam == 'catch': + histopwr = histopwr[histopwr < yaxminima[histoparam]] + histopwr = histopwr[histopwr > yaxmaxima[histoparam]] + else: + histopwr = histopwr[histopwr > yaxminima[histoparam]] + histopwr = histopwr[histopwr < yaxmaxima[histoparam]] plot = Figure(tools=TOOLS,plot_width=900, toolbar_sticky=False,