diff --git a/rowers/dataprep.py b/rowers/dataprep.py
index a9a17c89..ad1d5ccb 100644
--- a/rowers/dataprep.py
+++ b/rowers/dataprep.py
@@ -352,6 +352,7 @@ def dataprep(rowdatadf,id=0,bands=True,barchart=True,otwpower=True,
slip = rowdatadf.ix[:,'slip']
if windowsize > 3:
wash = savgol_filter(wash,windowsize,3)
+ slip = savgol_filter(slip,windowsize,3)
catch = savgol_filter(catch,windowsize,3)
finish = savgol_filter(finish,windowsize,3)
peakforce = savgol_filter(peakforce,windowsize,3)
diff --git a/rowers/templates/flexchart3otw.html b/rowers/templates/flexchart3otw.html
new file mode 100644
index 00000000..812361c5
--- /dev/null
+++ b/rowers/templates/flexchart3otw.html
@@ -0,0 +1,203 @@
+{% extends "base.html" %}
+{% load staticfiles %}
+{% load rowerfilters %}
+{% load tz %}
+
+{% block title %} Flexible Plot {% endblock %}
+
+{% localtime on %}
+{% block content %}
+
+{{ js_res | safe }}
+{{ css_res| safe }}
+
+
+
+
+
+{{ the_script |safe }}
+
+
+
+
+
+ {% if user.is_authenticated and mayedit %}
+
+
+ {% endif %}
+
+
+
+
+
+
+
+
+
+
+ {{ the_div|safe }}
+
+
+
+
+{% endblock %}
+{% endlocaltime %}
diff --git a/rowers/views.py b/rowers/views.py
index 06ec779b..0b1f0ff4 100644
--- a/rowers/views.py
+++ b/rowers/views.py
@@ -2606,22 +2606,39 @@ def workout_flexchart3_view(request,id=0,xparam='distance',yparam1='pace',
div = res[1]
js_resources = res[2]
css_resources = res[3]
-
- return render(request,
- 'flexchart3.html',
- {'the_script':script,
- 'the_div':div,
- 'js_res': js_resources,
- 'css_res':css_resources,
- 'id':id,
- 'xparam':xparam,
- 'yparam1':yparam1,
- 'yparam2':yparam2,
- 'plottype':plottype,
- 'mayedit':mayedit,
- 'promember':promember,
- 'workstrokesonly': not workstrokesonly,
- })
+
+ if row.workouttype == 'water':
+ return render(request,
+ 'flexchart3otw.html',
+ {'the_script':script,
+ 'the_div':div,
+ 'js_res': js_resources,
+ 'css_res':css_resources,
+ 'id':id,
+ 'xparam':xparam,
+ 'yparam1':yparam1,
+ 'yparam2':yparam2,
+ 'plottype':plottype,
+ 'mayedit':mayedit,
+ 'promember':promember,
+ 'workstrokesonly': not workstrokesonly,
+ })
+ else:
+ return render(request,
+ 'flexchart3.html',
+ {'the_script':script,
+ 'the_div':div,
+ 'js_res': js_resources,
+ 'css_res':css_resources,
+ 'id':id,
+ 'xparam':xparam,
+ 'yparam1':yparam1,
+ 'yparam2':yparam2,
+ 'plottype':plottype,
+ 'mayedit':mayedit,
+ 'promember':promember,
+ 'workstrokesonly': not workstrokesonly,
+ })
def testbokeh(request):