dsf.utils.colors module¶ Define the DSF color palette and continuous and discrete Matplotlib colormaps. dsf.utils.colors.pastelize(color, amount)[source]¶ Blend a color with white to produce a pastel shade. Parameters: color (str) – Matplotlib-compatible color. amount (float) – Fraction of white to mix in, between 0 and 1. Returns: Hexadecimal color string. Return type: str