diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 04cb5427..77c77250 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -5522,36 +5522,6 @@ 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) diff --git a/rowers/templates/favoritecharts.html b/rowers/templates/favoritecharts.html index b29a5bbc..c34c1973 100644 --- a/rowers/templates/favoritecharts.html +++ b/rowers/templates/favoritecharts.html @@ -25,7 +25,8 @@
- Use this form to change some of the characteristics of the static charts. The grid option + Use this form to change some of the characteristics of the static charts, as well as the + pace axis ranges on the flex charts. The grid option overlays grid lines over the charts. The fastest and slowest pace determine cutoff values for pace.
diff --git a/rowers/tests/testdata/testdata.tcx.gz b/rowers/tests/testdata/testdata.tcx.gz new file mode 100644 index 00000000..dc37faec Binary files /dev/null and b/rowers/tests/testdata/testdata.tcx.gz differ