Skip to content

Commit

Permalink
Merge pull request matplotlib#1284 from mgiuca-google/docs-imshow
Browse files Browse the repository at this point in the history
Fix Image Tutorial: plt.imshow instead of mpimg.imshow.
  • Loading branch information
pelson committed Sep 20, 2012
2 parents c74ca21 + 7a8ed34 commit 6b74c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/users/image_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ and the computer has to draw in pixels to fill that space.
In [9]: img = Image.open('stinkbug.png') # Open image as PIL image object
In [10]: rsize = img.resize((img.size[0]/10,img.size[1]/10)) # Use PIL to resize
In [11]: rsizeArr = np.asarray(rsize) # Get array back
In [12]: imgplot = mpimg.imshow(rsizeArr)
In [12]: imgplot = plt.imshow(rsizeArr)

.. plot::

Expand Down

0 comments on commit 6b74c57

Please sign in to comment.