Skip to content
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

display.events labels and lines are misaligned #209

Open
beasteers opened this issue Jul 19, 2020 · 1 comment
Open

display.events labels and lines are misaligned #209

beasteers opened this issue Jul 19, 2020 · 1 comment

Comments

@beasteers
Copy link

I see it when I'm plotting a jams 'onset' annotation.

jams.display.display(jam.annotations[0], meta=False)

It looks like this line is the culprit.

times, values = annotation.to_interval_values()

When I change to ann.to_event_values() everything looks fine.

It's because it's plotting each event with two lines on top of each other (duration=0) and when you zip the line objects and labels, the second label is aligned with the duplicate line on the first event and so on.

@bmcfee
Copy link
Contributor

bmcfee commented Jul 20, 2020

Excellent catch -- yes, I think that should be events_values in this case.

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

No branches or pull requests

2 participants