Creating a colormap from a list of colors — Matplotlib 3.1.0 documentation

Creating a colormap from a list of colors — Matplotlib 3.1.0 documentation