def nipy_spectral():
 rc(u'image', cmap=u'nipy_spectral')
 im = gci()
 if (im is not None):
  im.set_cmap(cm.nipy_spectral)

def nipy_spectral ( ) : rc ( u'image' , cmap = u'nipy_spectral' ) im = gci ( ) if ( im is not None ) : im . set_cmap ( cm . nipy_spectral )
set the default colormap to nipy_spectral and apply to current image if any .