Skip to content

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

Description

@sakluk

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions