You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
Activity
RicYaben commentedon Feb 3, 2025
Hey there! I encountered this issue and fixed it in this fork. Here is the only thing I changed: https://github.com/RicYaben/UpSetPlot/blob/bceb91d7655dd30a189eb58823c9b301a174f35b/upsetplot/plotting.py#L535
upsetplot 3.12 update