Skip to content

Commit 7db6d0e

Browse files
author
Benjamin Moody
committed
plot_annotation: show annotation markers atop signals.
Display the annotation markers at a higher "z-order" than the signals, so that the markers are visible when they overlap with the signals.
1 parent 169f25d commit 7db6d0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wfdb/plot/plot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,8 @@ def plot_annotation(ann_samp, n_annot, ann_sym, signal, n_sig, fs, time_units,
355355
raise Exception('IndexError: try setting shift_samps=True in '
356356
'the "rdann" function?')
357357

358-
axes[ch].plot(ann_samp[ch] / downsample_factor, y, ann_style[ch])
358+
axes[ch].plot(ann_samp[ch] / downsample_factor, y, ann_style[ch],
359+
zorder=4)
359360

360361
# Plot the annotation symbols if any
361362
if ann_sym is not None and ann_sym[ch] is not None:

0 commit comments

Comments
 (0)