From 7121879f398dabf4e5806a35fe2de22bfd02c901 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Mon, 24 Jan 2022 17:43:09 +0100 Subject: [PATCH] flix --- rowers/interactiveplots.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 77c77250..04cb5427 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -5522,6 +5522,36 @@ def interactive_flexchart_stacked(id,r,xparam='time', y3max = get_yaxmaxima(r,yparam3,mode) y4max = get_yaxmaxima(r,yparam4,mode) + if yparam1 == 'pace' and row.workouttype in mytypes.otetypes: + y1max = r.fastpaceerg + y1min = r.slowpaceerg + print('aap',y1min) + elif yparam1 == 'pace' and row.workouttype in mytypes.otwtypes: + y1max = r.otwpacefast + y1min = r.otwpaceslow + + if yparam2 == 'pace' and row.workouttype in mytypes.otetypes: + y2max = r.fastpaceerg + y2min = r.slowpaceerg + elif yparam2 == 'pace' and row.workouttype in mytypes.otwtypes: + y2max = r.otwpacefast + y2min = r.otwpaceslow + + if yparam3 == 'pace' and row.workouttype in mytypes.otetypes: + y3max = r.fastpaceerg + y3min = r.slowpaceerg + elif yparam3 == 'pace' and row.workouttype in mytypes.otwtypes: + y3max = r.otwpacefast + y3min = r.otwpaceslow + + if yparam4 == 'pace' and row.workouttype in mytypes.otetypes: + y4max = r.fastpaceerg + y4min = r.slowpaceerg + elif yparam4 == 'pace' and row.workouttype in mytypes.otwtypes: + y4max = r.otwpacefast + y4min = r.otwpaceslow + + plot1.y_range = Range1d(start=y1min,end=y1max) plot2.y_range = Range1d(start=y2min,end=y2max) plot3.y_range = Range1d(start=y3min,end=y3max)