Skip to content

Commit 227db6d

Browse files
committed
DOC: merge earlier comment about IPython notebook
1 parent b440db6 commit 227db6d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

doc/users/image_tutorial.rst

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,14 @@ Note that you can also change colormaps on existing plot objects using the
212212
imgplot = plt.imshow(lum_img)
213213
imgplot.set_cmap('spectral')
214214

215-
However, remember that in the IPython notebook with the inline backend,
216-
you can't make changes to plots that have already been rendered. If you
217-
create imgplot here in one cell, you cannot call set_cmap() on it in a later
218-
cell and expect the earlier plot to change.
215+
.. note::
216+
217+
However, remember that in the IPython notebook with the inline backend,
218+
you can't make changes to plots that have already been rendered. If you
219+
create imgplot here in one cell, you cannot call set_cmap() on it in a later
220+
cell and expect the earlier plot to change. Make sure that you enter these
221+
commands together in one cell. plt commands will not change plots from earlier
222+
cells.
219223

220224
There are many other colormap schemes available. See the `list and
221225
images of the colormaps
@@ -229,11 +233,6 @@ Color scale reference
229233
It's helpful to have an idea of what value a color represents. We can
230234
do that by adding color bars.
231235

232-
.. note::
233-
If you're using the IPython notebook to follow along, make sure
234-
that you enter these commands together in one cell. plt commands will not change
235-
plots from earlier cells.
236-
237236
.. sourcecode:: ipython
238237

239238
In [11]: imgplot = plt.imshow(lum_img)

0 commit comments

Comments
 (0)