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
I had a bug in my code where I calledplot() six times, stored the handles in a list, then calledlegend() with six handles, but seven labels for the legend.
It would have been very helpful if matplotlib raised an exception in this case.