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

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