DEMutilities.postprocessing.representation. cmap_tools

In order to be able to use this module import it like this:

import DEMutilities.postprocessing.representation.cmap_tools
#or assign it to a shorter name
import DEMutilities.postprocessing.representation.cmap_tools as cma
DEMutilities.postprocessing.representation.cmap_tools.apply_function_to_cmap(cmap, function)
DEMutilities.postprocessing.representation.cmap_tools.cmap_to_list(cmap, N, fac_rgb=1, dif_rgb=0)
DEMutilities.postprocessing.representation.cmap_tools.get_cmap(cmap, **kwargs)
DEMutilities.postprocessing.representation.cmap_tools.get_random_cmap(verbose=True)
DEMutilities.postprocessing.representation.cmap_tools.invert_cmap(cmap)
DEMutilities.postprocessing.representation.cmap_tools.jet_colors(N, fac_rgb=0.6, dif_rgb=0.2)
DEMutilities.postprocessing.representation.cmap_tools.list_all_cmaps()
DEMutilities.postprocessing.representation.cmap_tools.scale_cmap(cmap, scale_value=1.0)
DEMutilities.postprocessing.representation.cmap_tools.scale_colors(colors, scale)
DEMutilities.postprocessing.representation.cmap_tools.threshold_colors(colors, minval=0.0, maxval=1.0, no_alpha=True)
DEMutilities.postprocessing.representation.cmap_tools.translate_cmap(cmap, shift_value=1.0)
DEMutilities.postprocessing.representation.cmap_tools.translate_colors(colors, value)