Private
Public Access
1
0

better - it already did what I intended by my previous code change

This commit is contained in:
Sander Roosendaal
2022-01-24 17:52:28 +01:00
parent 7121879f39
commit 4fee235374
3 changed files with 2 additions and 31 deletions

View File

@@ -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)

View File

@@ -25,7 +25,8 @@
<h1>Charts Settings of {{ rower.user.first_name }} {{ rower.user.last_name }}</h1>
<p>
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.
</p>

BIN
rowers/tests/testdata/testdata.tcx.gz vendored Normal file

Binary file not shown.