Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f8e00bb

Browse files
committed
MNT: maybe work a numpy/python2.7 issue
1 parent 508dee6 commit f8e00bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def _make_image(self, A, in_bbox, out_bbox, clip_bbox, magnification=1.0,
382382
# This may introduce numeric instabilities in very broadly
383383
# scaled data
384384
A_scaled = np.empty(A.shape, dtype=scaled_dtype)
385-
A_scaled[:] = A
385+
A_scaled[:] = A.data
386386
A_scaled -= a_min
387387
A_scaled /= ((a_max - a_min) / 0.8)
388388
A_scaled += 0.1

0 commit comments

Comments
 (0)