8000
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 f5ff73f commit ea565c6Copy full SHA for ea565c6
lib/matplotlib/image.py
@@ -683,8 +683,8 @@ def get_extent(self):
683
else:
684
return (-0.5, numcols-0.5, -0.5, numrows-0.5)
685
686
- def get_zdata(self, event):
687
- """Get the zdata message for a given event"""
+ def get_pixel_data(self, event):
+ """Get the pixel data for a given event"""
688
xmin, xmax, ymin, ymax = self.get_extent()
689
if self.origin == 'upper':
690
ymin, ymax = ymax, ymin
@@ -695,8 +695,7 @@ def get_zdata(self, event):
695
mtransforms.BboxTransformTo(array_extent))
696
y, x = event.ydata, event.xdata
697
i, j = trans.transform_point([y, x]).astype(int)
698
- z = arr[i, j]
699
- return z
+ return arr[i, j]
700
701
702
class NonUniformImage(AxesImage):
0 commit comments