Skip to content

Commit

Permalink
DOC spectral is now deprecated in favor of nipy_spectral
Browse files Browse the repository at this point in the history
The documentation now uses nipy_spectral
  • Loading branch information
NelleV committed Nov 8, 2016
1 parent c708871 commit 066cfe0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions doc/users/image_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Note that you can also change colormaps on existing plot objects using the
.. sourcecode:: ipython

In [10]: imgplot = plt.imshow(lum_img)
In [11]: imgplot.set_cmap('spectral')
In [11]: imgplot.set_cmap('nipy_spectral')

.. plot::

Expand All @@ -213,7 +213,7 @@ Note that you can also change colormaps on existing plot objects using the
img = mpimg.imread('../_static/stinkbug.png')
lum_img = img[:, :, 0]
imgplot = plt.imshow(lum_img)
imgplot.set_cmap('spectral')
imgplot.set_cmap('nipy_spectral')

.. note::

Expand Down Expand Up @@ -249,7 +249,7 @@ do that by adding color bars.
img = mpimg.imread('../_static/stinkbug.png')
lum_img = img[:, :, 0]
imgplot = plt.imshow(lum_img)
imgplot.set_cmap('spectral')
imgplot.set_cmap('nipy_spectral')
plt.colorbar()

This adds a colorbar to your existing figure. This won't
Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/pylab.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
spring - set the default colormap to spring
summer - set the default colormap to summer
winter - set the default colormap to winter
spectral - set the default colormap to spectral
_Event handling
Expand Down
2 changes: 1 addition & 1 deletion lib/mpl_toolkits/tests/test_axes_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_imagegrid_cbar_mode_edge():
cbar_mode='edge')
ax1, ax2, ax3, ax4, = grid

im1 = ax1.imshow(arr.real, cmap='spectral')
im1 = ax1.imshow(arr.real, cmap='nipy_spectral')
im2 = ax2.imshow(arr.imag, cmap='hot')
im3 = ax3.imshow(np.abs(arr), cmap='jet')
im4 = ax4.imshow(np.arctan2(arr.imag, arr.real), cmap='hsv')
Expand Down

0 comments on commit 066cfe0

Please sign in to comment.