The 2018 SciPy John Hunter Excellence in Plotting Contest is accepting submissions until June 8th!
Version 2.2.2
matplotlib
Fork me on GitHub

matplotlib.pyplot.spectral

matplotlib.pyplot.spectral()

Set the colormap to “spectral”.

This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information.