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

Skip to content

Commit 1f331db

Browse files
mgiuca-googlepelson
authored andcommitted
Fix Image Tutorial: plt.imshow instead of mpimg.imshow.
1 parent 34e0422 commit 1f331db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/users/image_tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ and the computer has to draw in pixels to fill that space.
337337
In [9]: img = Image.open('stinkbug.png') # Open image as PIL image object
338338
In [10]: rsize = img.resize((img.size[0]/10,img.size[1]/10)) # Use PIL to resize
339339
In [11]: rsizeArr = np.asarray(rsize) # Get array back
340-
In [12]: imgplot = mpimg.imshow(rsizeArr)
340+
In [12]: imgplot = plt.imshow(rsizeArr)
341341

342342
.. plot::
343343

0 commit comments

Comments
 (0)