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

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