8000 PEP8 fix · matplotlib/matplotlib@7e0d1ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e0d1ca

Browse files
committed
PEP8 fix
1 parent 34854db commit 7e0d1ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/image.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,8 @@ def get_zdata(self, event):
693693
array_extent = mtransforms.Bbox([[0, 0], arr.shape[:2]])
694694
trans = mtransforms.BboxTransformFrom(data_extent) +\
695695
mtransforms.BboxTransformTo(array_extent)
696-
i, j = trans.transform_point([event.ydata, event.xdata]).astype(int)
696+
y, x = event.ydata, event.xdata
697+
i, j = trans.transform_point([y, x]).astype(int)
697698
z = arr[i, j]
698699
if z.size > 1:
699700
# Override default numpy formatting for this specific case. Bad idea?

0 commit comments

Comments
 (0)
0