Skip to content

Commit 1cd07a6

Browse files
committed
Merge pull request matplotlib#685 from Carreau/patch-2
fix mpimg.imshow to plt.imshow in doc example
2 parents 1e24aed + f2c0bd3 commit 1cd07a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/users/image_tutorial.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ This is array slicing. You can read more in the `Numpy tutorial <http://www.sci
181181

182182
.. sourcecode:: ipython
183183

184-
In [7]: imgplot = mpimg.imshow(lum_img)
184+
In [7]: imgplot = plt.imshow(lum_img)
185185

186186
.. plot::
187187

@@ -291,7 +291,7 @@ object.
291291

292292
.. sourcecode:: ipython
293293

294-
In[11]: imgplot.set_clim=(0.0,0.7)
294+
In[11]: imgplot.set_clim(0.0,0.7)
295295

296296
.. plot::
297297

0 commit comments

Comments
 (0)