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

Bug with matplotlib 3.10.0 #289

Open
durr1602 opened this issue Jan 7, 2025 · 0 comments
Open

Bug with matplotlib 3.10.0 #289

durr1602 opened this issue Jan 7, 2025 · 0 comments

Comments

@durr1602
Copy link

durr1602 commented Jan 7, 2025

Hi,
I've noticed a bug related to one of the recent versions of matplotlib (at the time of writing). The error is raised when I draw the upsetplot using this line:
d = upset_obj.plot(fig=fig)
I've traced it back to the "legend.py" script of matplotlib 3.10.0, in which the following lines cause the issue:

    labels = [*reversed(labels)]
    handles = [*reversed(handles)]
if len(handles) < 2:

TypeError: object of type 'list_reverseiterator' has no len()

The issue is not present in matplotlib v3.9.2 since legend.py did not feature these lines.
Help much appreciated!

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

1 participant