Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions ecg_plot/ecg_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def plot_12(
t_ax.set_ylabel(lead_index[t_lead])
t_ax.tick_params(axis='x',rotation=90)

_ax_plot(t_ax, np.arange(0, len(ecg[t_lead])*step, step), ecg[t_lead], seconds)
_ax_plot(t_ax, np.arange(0, len(ecg[t_lead])/sample_rate, step), ecg[t_lead], seconds)

def plot(
ecg,
Expand Down Expand Up @@ -219,7 +219,7 @@ def plot_1(ecg, sample_rate=500, title = 'ECG', fig_width = 15, fig_height = 2,
ax = plt.subplot(1, 1, 1)
#plt.rcParams['lines.linewidth'] = 5
step = 1.0/sample_rate
_ax_plot(ax,np.arange(0,len(ecg)*step,step),ecg, seconds, line_w, ecg_amp,timetick)
_ax_plot(ax,np.arange(0,len(ecg)/sample_rate,step),ecg, seconds, line_w, ecg_amp,timetick)

DEFAULT_PATH = './'
show_counter = 1
Expand Down