10000 Fixes incorrect ipython sourcecode · matplotlib/matplotlib@086e650 · GitHub
[go: up one dir, main page]

Skip to content

Commit 086e650

Browse files
committed
Fixes incorrect ipython sourcecode
This commit fixes incorrect ipython 8000 sourcecode in the `users/image_tutorial.rst` file. Details about the problem fixed by this commit has captured by Issue #5900.
1 parent bd7f73a commit 086e650

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/users/image_tutorial.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ the image.
340340

341341
In [16]: from PIL import Image
342342
In [17]: img = Image.open('../_static/stinkbug.png')
343-
In [18]: resized = img.thumbnail((64, 64), Image.ANTIALIAS) # resizes image in-place
343+
In [18]: img.thumbnail((64, 64), Image.ANTIALIAS) # resizes image in-place
344344
In [19]: imgplot = plt.imshow(img)
345345

346346
.. plot::
@@ -358,7 +358,7 @@ Let's try some others:
358358

359359
.. sourcecode:: ipython
360360

361-
In [20]: imgplot = plt.imshow(resized, interpolation="nearest")
361+
In [20]: imgplot = plt.imshow(img, interpolation="nearest")
362362

363363
.. plot::
364364

@@ -370,7 +370,7 @@ Let's try some others:
370370

371371
.. sourcecode:: ipython
372372

373-
In [21]: imgplot = plt.imshow(resized, interpolation="bicubic")
373+
In [21]: imgplot = plt.imshow(img, interpolation="bicubic")
374374

375375
.. plot::
376376

0 commit comments

Comments
 (0)
0