Private
Public Access
1
0

some improvements on multiflex chart

This commit is contained in:
Sander Roosendaal
2017-07-07 09:39:53 +02:00
parent a8866ca3ac
commit 1802e5f522
3 changed files with 18 additions and 6 deletions

View File

@@ -1173,9 +1173,14 @@ def interactive_multiflex(datadf,xparam,yparam,groupby,extratitle='',
xparamname = axlabels[xparam]
yparamname = axlabels[yparam]
if xparam=='distance':
xaxmax = datadf['x'].max()
xaxmin = datadf['x'].min()
xaxmax = datadf[xparam].max()
xaxmin = datadf[xparam].min()
elif xparam=='time':
tseconds = datadf.ix[:,'time']
xaxmax = tseconds.max()
xaxmin = 0
else:
xaxmax = yaxmaxima[xparam]
xaxmin = yaxminima[xparam]