def get_cmap(name=None, lut=None):
 if (name is None):
  name = mpl.rcParams['image.cmap']
 if (lut is None):
  lut = mpl.rcParams['image.lut']
 assert (name in datad.keys())
 return colors.LinearSegmentedColormap(name, datad[name], lut)

def get_cmap ( name = None , lut = None ) : if ( name is None ) : name = mpl . rcParams [ 'image.cmap' ] if ( lut is None ) : lut = mpl . rcParams [ 'image.lut' ] assert ( name in datad . keys ( ) ) return colors . LinearSegmentedColormap ( name , datad [ name ] , lut )
get a colormap instance .