def _cdict_from_cpt(): import matplotlib as mpl lutsize = mpl.rcParams['image.lut'] cdict = {} for k, v in cptdic.iteritems(): cdict[k] = cpt2python(cptfldr + v) cdict[k + '_r'] = _reverse_cmap_spec(cdict[k]) return cdict
def _cdict_from_cpt(): import matplotlib as mpl lutsize = mpl.rcParams['image.lut'] cdict = {} for k,v in cptdic.iteritems(): cdict[k] = cpt2python(cptfldr+v) cdict[k+'_r'] = _reverse_cmap_spec(cdict[k]) return cdict
def _cmap_d_from_cpt(): cmap_d = {} for k,v in cptdic.iteritems(): cmap_d[k] = _get_cm_from_cpt(filename=cptfldr+v,cmapname=k, lutsize=lutsize,inverse=False) cmap_d[k+'_r'] = _get_cm_from_cpt(filename=cptfldr+v,cmapname=k, lutsize=lutsize,inverse=True) return cmap_d
def _cmap_d_from_cpt(): cmap_d = {} for k, v in cptdic.iteritems(): cmap_d[k] = _get_cm_from_cpt(filename=cptfldr + v, cmapname=k, lutsize=lutsize, inverse=False) cmap_d[k + '_r'] = _get_cm_from_cpt(filename=cptfldr + v, cmapname=k, lutsize=lutsize, inverse=True) return cmap_d