Skip to content

Plot saves as blank image #9

@ohleevah

Description

@ohleevah

Followed example code, plot shows up fine in plot viewer within Spyder but saved image is blank white square.

Code below - including creating array of simulated data

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

ls_dfs = [] 
for i in range(0,12):
    lead = pd.DataFrame({'lead {}'.format(i+1):nk.signal_simulate(duration=10, sampling_rate=500, random_state=i)})
    ls_dfs.append(lead)

df = pd.concat(ls_dfs, axis=1)
df = df.T


df = df.values

ecg_plot.plot_12(df,sample_rate=500,title="")

ecg_plot.save_as_png('example_ecg',"")

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