Skip to content

Show annotation markers atop signals #345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2022
Merged

Conversation

bemoody
Copy link
Collaborator

@bemoody bemoody commented Mar 17, 2022

When plotting signals and annotations using wfdb.plot_items or wfdb.plot_wfdb , the annotation markers are currently displayed "underneath" the signal trace, where they are hard to see. Put them "on top" instead.

For example, compare the appearance of running wfdb.plot_wfdb(wfdb.rdrecord('sample-data/100', sampto=1000), wfdb.rdann('sample-data/100', 'qrs', sampto=1000)) before and after this change.

Display the annotation markers at a higher "z-order" than the signals,
so that the markers are visible when they overlap with the signals.
@tompollard
Copy link
Member

Agreed, looks much better.

Pre-change:

image

Post-change:

image

@tompollard tompollard merged commit 39bbaac into master Mar 17, 2022
@tompollard tompollard deleted the annotation-marker-on-top branch March 17, 2022 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants