paulvangentcom / heartrate_analysis_python

Python Heart Rate Analysis Package, for both PPG and ECG signals
MIT License
962 stars 322 forks source link

Using plotter in Anaconda's JupyterLab gives non-GUI backend UserWarning #106

Open sakluk opened 1 year ago

sakluk commented 1 year ago

I just installed heartpy, downloaded the Analysing a PPG signal Notebook, and run it in my laptop using Andonda's JupyterLab (ver 3.2.1). When calling the plotter

#set large figure
plt.figure(figsize=(12,4))

#call plotter
hp.plotter(wd, m)

It gave a UserWarning, but showed the figure normally

heartpy\visualizeutils.py:119: UserWarning: Matplotlib is currently using module://matplotlib_inline.backend_inline, which is a non-GUI backend, so cannot show the figure. fig.show()

In addition, the output graph (see below) differed slightly what was shown in the example Notebook:

  1. Setting the figure size before calling the plotter didn't have any effect.
  2. The x-axis scale was in seconds, not in samples as in the example Notebook.
  3. The rolling average was missing (default value has changed?).

2023-08-10 heartpy process output