.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/Plots/plot_frequency.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_Plots_plot_frequency.py: Plot frequency ============== .. GENERATED FROM PYTHON SOURCE LINES 7-13 .. code-block:: default # Author: Nicolas Legrand # Licence: GPL v3 .. GENERATED FROM PYTHON SOURCE LINES 14-16 Visualizing HRV frequency domain from RR time series using Matplotlib as plotting backend ----------------------------------------------------------------------------------------- .. GENERATED FROM PYTHON SOURCE LINES 16-23 .. code-block:: default from systole import import_rr from systole.plots import plot_frequency # Import PPG recording as numpy array rr = import_rr().rr.to_numpy() plot_frequency(rr, input_type="rr_ms") .. image-sg:: /auto_examples/Plots/images/sphx_glr_plot_frequency_001.png :alt: Power Spectral Density :srcset: /auto_examples/Plots/images/sphx_glr_plot_frequency_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none .. GENERATED FROM PYTHON SOURCE LINES 24-26 Visualizing HRV frequency domain from RR time series using Bokeh as plotting backend ------------------------------------------------------------------------------------ .. GENERATED FROM PYTHON SOURCE LINES 26-34 .. code-block:: default from systole import import_rr from systole.plots import plot_frequency from bokeh.io import output_notebook from bokeh.plotting import show output_notebook() show( plot_frequency(rr, input_type="rr_ms", backend="bokeh") ) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.343 seconds) .. _sphx_glr_download_auto_examples_Plots_plot_frequency.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_frequency.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_frequency.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_