DCASE-REPO / dcase_util

A collection of utilities for Detection and Classification of Acoustic Scenes and Events
https://dcase-repo.github.io/dcase_util/
MIT License
129 stars 33 forks source link

Error while running event roll tutorial code with version 2.16 #36

Closed shubhrsingh22 closed 3 years ago

shubhrsingh22 commented 3 years ago

I am trying to run the event roll code from dcase repo and getting the error "QuadMesh' object has no attribute yaxis" for the line event_roll.plot()

toni-heittola commented 3 years ago

Did you get any line number inside dcase_util with the error? Which version of matplotlib you have? I just verified that the tutorial example (https://dcase-repo.github.io/dcase_util/tutorial_metadata.html#event-roll) works with my setup (I'm currently using matplotlib version 3.1.3)

shubhrsingh22 commented 3 years ago

I got the issue on this line if self.label_list: ax.yaxis.set_label_position("right"). line number is 2240. My matplotlib version is 3.3.3

toni-heittola commented 3 years ago

This issue was related to librosa 0.8.0 and change what librosa.display.specshow returns. The commit b76c97d47f13c5d7f3c849e7525a385ac62802e3 fixed this. Easiest way to fix this is to update to newest dcase_util version (>= v0.2.17).