pychangcooper.utils package

Submodules

pychangcooper.utils.cmap_intervals module

pychangcooper.utils.cmap_intervals.cmap_intervals(length=50, cmap='YlOrBr', start=None, stop=None)[source]

Return evenly spaced intervals of a given colormap cmap. Colormaps listed in REVERSE_CMAP will be cycled in reverse order. Certain colormaps have pre-specified color ranges in CMAP_RANGE. These module variables ensure that colors cycle from light to dark and light colors are not too close to white. :param length: int the number of colors used before cycling back to first color. When length is large (> ~10), it is difficult to distinguish between successive lines because successive colors are very similar. :param cmap: str name of a matplotlib colormap (see matplotlib.pyplot.cm)

pychangcooper.utils.progress_bar module

Module contents