flix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user