8000 Merge pull request #1284 from mgiuca-google/docs-imshow · dhx/matplotlib@6b74c57 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b74c57

Browse files
committed
Merge pull request matplotlib#1284 from mgiuca-google/docs-imshow
Fix Image Tutorial: plt.imshow instead of mpimg.imshow.
2 parents c74ca21 + 7a8ed34 commit 6b74c57

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)
0