Private
Public Access
1
0

rowing physics tasks to work with empower

This commit is contained in:
Sander Roosendaal
2016-12-01 17:51:47 +01:00
parent 2a62db3703
commit 1a9979a741
5 changed files with 410 additions and 11 deletions

View File

@@ -875,6 +875,7 @@ def interactive_flex_chart2(id=0,promember=0,
axlabels = {
'time': 'Time',
'distance': 'Distance (m)',
'cumdist': 'Distance (m)',
'hr': 'Heart Rate (bpm)',
'spm': 'Stroke Rate (spm)',
'pace': 'Pace (/500m)',
@@ -962,7 +963,7 @@ def interactive_flex_chart2(id=0,promember=0,
if xparam=='time':
xaxmax = tseconds.max()
xaxmin = tseconds.min()
elif xparam=='distance':
elif xparam=='distance' or xparam=='cumdist':
xaxmax = rowdata['x1'].max()
xaxmin = rowdata['x1'].min()
else:
@@ -1043,7 +1044,7 @@ def interactive_flex_chart2(id=0,promember=0,
text_color='green',
)
if (xparam != 'time') and (xparam != 'distance'):
if (xparam != 'time') and (xparam != 'distance') and (xparam != 'cumdist'):
plot.add_layout(x1means)
plot.add_layout(xlabel)
@@ -1080,7 +1081,7 @@ def interactive_flex_chart2(id=0,promember=0,
yrange1 = Range1d(start=yaxminima[yparam1],end=yaxmaxima[yparam1])
plot.y_range = yrange1
if (xparam != 'time') and (xparam != 'distance'):
if (xparam != 'time') and (xparam != 'distance') and (xparam != 'cumdist'):
xrange1 = Range1d(start=yaxminima[xparam],end=yaxmaxima[xparam])
plot.x_range = xrange1