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
The default for the indices keyword in the find_nearest_contour function within countour.py is defined incorrectly in the code. Line 1377 should be "indices = range(len(self.layers))" instead of "indices = range(len(self.levels))."
Traceback (most recent call last):
File "", line 1, in
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/matplotlib/contour.py", line 1388, in find_nearest_contour
con = self.collections[icon]
IndexError: list index out of range
Bug summary
The default for the indices keyword in the find_nearest_contour function within countour.py is defined incorrectly in the code. Line 1377 should be "indices = range(len(self.layers))" instead of "indices = range(len(self.levels))."
Code for reproduction
Actual outcome
Traceback (most recent call last):
File "", line 1, in
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/matplotlib/contour.py", line 1388, in find_nearest_contour
con = self.collections[icon]
IndexError: list index out of range
Expected outcome
(0, 0, 397, 23.68976612821045, 14.034856810732212, 49.197307349357025)
Additional information
No response
Operating system
Mac OS 12.3.1
Matplotlib Version
3.5.1
Matplotlib Backend
TkAgg
Python version
3.8.12
Jupyter version
No response
Installation
pip
The text was updated successfully, but these errors were encountered: