Plot pointcare#

# Author: Nicolas Legrand <nicolas.legrand@cfin.au.dk>
# Licence: Apache-2.0

Visualizing poincare plot from RR time series using Matplotlib as plotting backend#

from systole import import_rr
from systole.plots import plot_poincare

# Import PPG recording as numpy array
rr = import_rr().rr.to_numpy()

plot_poincare(rr, input_type="rr_ms")
<Axes: title={'center': 'Poincare plot'}, xlabel='RR (n)', ylabel='RR (n+1)'>
../../_images/e40874ad6d657e073b1d0084063313bc584079e7198d8e3df1f302f8bacf801d.png

Using Bokeh as plotting backend#

from bokeh.io import output_notebook
from bokeh.plotting import show
output_notebook()

from systole import import_rr
from systole.plots import plot_poincare

show(
    plot_poincare(rr, input_type="rr_ms", backend="bokeh")
)
Loading BokehJS ...