unicode_literals) import six import os import warnings as _warnings # To remove once spectral is removed import numpy as np from numpy import ma import matplotlib as mpl import matplotlib.colors as colors import matplotlib.cbook as cbook from matplotlib._cm import datad, _deprecation_datad from matplotlib._cm import cubehelix from matplotlib._cm_listed import cmaps as cmaps_listed cmap_d = _deprecation_datad() # reverse all the colormaps. # reversed colormaps have '_r' appended to the name. def _reverser(f): def freversed(x): return f(1 - x) return freversed def revcmap(data): """Can only handle specification *data* in dictionary format.""" data_r = {}
unicode_literals) import six import os import warnings as _warnings # To remove once spectral is removed import numpy as np from numpy import ma import matplotlib as mpl import matplotlib.colors as colors import matplotlib.cbook as cbook from matplotlib._cm import datad, _deprecation_datad from matplotlib._cm import cubehelix from matplotlib._cm_listed import cmaps as cmaps_listed cmap_d = _deprecation_datad() # reverse all the colormaps. # reversed colormaps have '_r' appended to the name. def _reverser(f): def freversed(x): return f(1 - x) return freversed def revcmap(data): """Can only handle specification *data* in dictionary format.""" data_r = {} for key, val in six.iteritems(data):