From b2e7da58c22fc23ff919870ab27033cea6c4d5e7 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Wed, 8 Apr 2020 16:25:19 +0200 Subject: [PATCH] further fixes --- rowers/interactiveplots.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index ad91b1b0..80e02f70 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -3097,7 +3097,9 @@ def interactive_multiflex(datadf,xparam,yparam,groupby,extratitle='', gr = groupname, ) - + if xparam == 'cumdist': + res = make_cumvalues(datadf[xparam]) + datadf[xparam] = res[0] if xparam=='distance': xaxmax = datadf[xparam].max() xaxmin = datadf[xparam].min() @@ -4781,7 +4783,7 @@ def interactive_multiple_compare_chart(ids,xparam,yparam,plottype='line', group.sort_values(by='time',ascending=True,inplace=True) - print(xparam) + if xparam == 'cumdist': res = make_cumvalues(group[xparam]) group[xparam] = res[0]