Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug with matplotlib 3.10.0 #289

@durr1602

Description

@durr1602

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions