def spectral():
 from matplotlib.cbook import warn_deprecated
 warn_deprecated(u'2.0', name=u'spectral', obj_type=u'colormap')
 rc(u'image', cmap=u'spectral')
 im = gci()
 if (im is not None):
  im.set_cmap(cm.spectral)

def spectral ( ) : from matplotlib . cbook import warn_deprecated warn_deprecated ( u'2.0' , name = u'spectral' , obj_type = u'colormap' ) rc ( u'image' , cmap = u'spectral' ) im = gci ( ) if ( im is not None ) : im . set_cmap ( cm . spectral )
set the default colormap to spectral and apply to current image if any .