From b712d54dcbf0510fe2a2261ffa79057862c67418 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 9 Mar 2017 13:58:45 +0100 Subject: [PATCH] added y axes for distance - multi compare --- rowers/.#interactiveplots.py | 1 - rowers/interactiveplots.py | 11 +++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) delete mode 100644 rowers/.#interactiveplots.py diff --git a/rowers/.#interactiveplots.py b/rowers/.#interactiveplots.py deleted file mode 100644 index ef817ef8..00000000 --- a/rowers/.#interactiveplots.py +++ /dev/null @@ -1 +0,0 @@ -E408191@CZ27LT9RCGN72.15972:1488820163 \ No newline at end of file diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 430ef19f..7dfbeddc 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -1693,8 +1693,15 @@ def interactive_multiple_compare_chart(ids,xparam,yparam,plottype='line', xaxmax = datadf['distance'].max() xaxmin = datadf['distance'].min() - yaxmin = yaxminima[yparam] - yaxmax = yaxmaxima[yparam] + if yparam == 'distance': + yaxmin = datadf['distance'].min() + yaxmax = datadf['distance'].max() + elif yparam == 'cumdist': + yaxmin = datadf['cumdist'].min() + yaxmax = datadf['cumdist'].max() + else: + yaxmin = yaxminima[yparam] + yaxmax = yaxmaxima[yparam] x_axis_type = 'linear' y_axis_type = 'linear'