tools.cmp

tools.cmp(palette='viridis')[source]

Create a cmap palette with grey as the first colour.

Parameters:

palette (str, optional) – Accepts palette accepted by matplotlib.pyplot.get_cmap.

Returns:

ListedColormap instance with grey as the first colour.

Return type:

ListedColormap