def clim(vmin=None, vmax=None):
 im = gci()
 if (im is None):
  raise RuntimeError('You must first define an image, eg with imshow')
 im.set_clim(vmin, vmax)
 draw_if_interactive()

def clim ( vmin = None , vmax = None ) : im = gci ( ) if ( im is None ) : raise RuntimeError ( 'You must first define an image, eg with imshow' ) im . set_clim ( vmin , vmax ) draw_if_interactive ( )
set the color limits of the current image to apply clim to all axes images do:: clim if either *vmin* or *vmax* is none .