diplomat.utils.colormaps

Provides utility functions for colormap conversion and iteration.

Functions

iter_colormap(cmap, count[, bytes])

Iterate a matplotlib colormap, returning a sequence of colors sampled from it.

to_colormap([cmap])

Convert any colormap like object to a matplotlib Colormap.

Classes

DiplomatColormap(name, r_values, g_values, ...)