@@ -212,10 +212,14 @@ Note that you can also change colormaps on existing plot objects using the
212
212
imgplot = plt.imshow(lum_img)
213
213
imgplot.set_cmap('spectral')
214
214
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.
219
223
220
224
There are many other colormap schemes available. See the `list and
221
225
images of the colormaps
@@ -229,11 +233,6 @@ Color scale reference
229
233
It's helpful to have an idea of what value a color represents. We can
230
234
do that by adding color bars.
231
235
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
-
237
236
.. sourcecode :: ipython
238
237
239
238
In [11]: imgplot = plt.imshow(lum_img)
0 commit comments