diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 39d09199..c9cd7d25 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -2199,15 +2199,17 @@ def interactive_chart(id=0,promember=0): hover.mode = 'mouse' - plot.extra_y_ranges["hrax"] = Range1d(start=100,end=200) - plot.line('time','hr',source=source,color="red", - y_range_name="hrax", legend="Heart Rate") - plot.add_layout(LinearAxis(y_range_name="hrax",axis_label="HR"),'right') + plot.extra_y_ranges["spmax"] = Range1d(start=10,end=45) + plot.line('time','spm',source=source,color="red", + y_range_name="spmax", legend="Stroke Rate") + plot.add_layout(LinearAxis(y_range_name="spmax",axis_label="SPM"),'right') plot.legend.location = "bottom_right" script, div = components(plot) + print div,"aap" + return [script,div] def interactive_multiflex(datadf,xparam,yparam,groupby,extratitle='',