Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e0422 commit 1f331dbCopy full SHA for 1f331db
doc/users/image_tutorial.rst
@@ -337,7 +337,7 @@ and the computer has to draw in pixels to fill that space.
337
In [9]: img = Image.open('stinkbug.png') # Open image as PIL image object
338
In [10]: rsize = img.resize((img.size[0]/10,img.size[1]/10)) # Use PIL to resize
339
In [11]: rsizeArr = np.asarray(rsize) # Get array back
340
- In [12]: imgplot = mpimg.imshow(rsizeArr)
+ In [12]: imgplot = plt.imshow(rsizeArr)
341
342
.. plot::
343
0 commit comments