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

Skip to content

Commit f48ef81

Browse files
committed
Fix bug in imshow, introduced in r5042, found by A. Straw
svn path=/trunk/matplotlib/; revision=5428
1 parent 6f06a5e commit f48ef81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def make_image(self, magnification=1.0):
170170

171171
if self._imcache is None:
172172
if self._A.dtype == np.uint8 and len(self._A.shape) == 3:
173-
im = _image.frombyte(self._A[xslice,yslice,:], 0)
173+
im = _image.frombyte(self._A[yslice,xslice,:], 0)
174174
im.is_grayscale = False
175175
else:
176176
if self._rgbacache is None:

0 commit comments

Comments
 (0)