Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed712e3 commit 291c977Copy full SHA for 291c977
lib/matplotlib/image.py
@@ -1197,10 +1197,7 @@ def get_cursor_data(self, event):
1197
return None
1198
j = np.searchsorted(self._Ax, x) - 1
1199
i = np.searchsorted(self._Ay, y) - 1
1200
- try:
1201
- return self._A[i, j]
1202
- except IndexError:
1203
- return None
+ return self._A[i, j]
1204
1205
1206
class PcolorImage(AxesImage):
@@ -1334,10 +1331,7 @@ def get_cursor_data(self, event):
1334
1331
1335
1332
1336
1333
1337
1338
1339
1340
1341
1342
1343
class FigureImage(_ImageBase):
0 commit comments