neuropsychology / NeuroKit

NeuroKit2: The Python Toolbox for Neurophysiological Signal Processing
https://neuropsychology.github.io/NeuroKit
MIT License
1.55k stars 413 forks source link

graph plotting not working any more #496

Closed shashanka300 closed 2 years ago

shashanka300 commented 3 years ago

signal_plot function dosent plot any more

Example from pipy

import numpy as np import pandas as pd import neurokit2 as nk

Generate synthetic signals

ecg = nk.ecg_simulate(duration=10, heart_rate=70) ppg = nk.ppg_simulate(duration=10, heart_rate=70) rsp = nk.rsp_simulate(duration=10, respiratory_rate=15) eda = nk.eda_simulate(duration=10, scr_number=3) emg = nk.emg_simulate(duration=10, burst_number=2)

Visualise biosignals

data = pd.DataFrame({"ECG": ecg, "PPG": ppg, "RSP": rsp, "EDA": eda, "EMG": emg}) nk.signal_plot(data, subplots=True)

It dosent plot the results

welcome[bot] commented 3 years ago

Hi 👋 Thanks for reaching out and opening your first issue here! We'll try to come back to you as soon as possible. ❤️ kenobi

zen-juen commented 3 years ago

Hi @shashanka300 could you please elaborate on this and give us a reproducible example so that we can investigate?

shashanka300 commented 3 years ago

Hi @shashanka300 could you please elaborate on this and give us a reproducible example so that we can investigate?

shashanka300 commented 3 years ago

sorry closed by mistake, kindly run the example, apparently the plot function has stoped working

zen-juen commented 3 years ago

No worries! What's your neurokit version? Can you also show us what is the error message you encountered?

shashanka300 commented 3 years ago

No worries! What's your neurokit version? Can you also show us what is the error message you encountered?

Screenshot 2021-08-19 at 2 23 39 PM

version 0.1.3, verified on 0.1.1 and 0.1.2 as well, normally post execution i used to get graphs, now nothing comes no error either

zen-juen commented 3 years ago

Are you using jupyter notebook as your IDE? You might need a %matplotlib inline at the start to see plots in your interface (see more options)

stale[bot] commented 2 years ago

This issue has been automatically marked as inactive because it has not had recent activity. It will eventually be closed if no further activity occurs.

Manthan-tech commented 2 years ago

Is there any solution for this, I am facing the same issue with the latest version. Nothing is happening on running signal_plot, ecg_plot, event_plot function

shashanka300 commented 2 years ago

simple solution use plt.show() EOL

Manthan-tech commented 2 years ago

simple solution use plt.show() EOL

My bad.., Thanks it worked😅

stale[bot] commented 2 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.