branca

How to extract colors from branca colormap using Python?

How to extract colors from branca colormap using Python? Question: From the below branca colormap import branca color_map = branca.colormap.linear.PuRd_09.scale(0, 250) colormap = color_map.to_step(index=[0, 10, 20, 50, 70, 90, 120, 200]) How can I extract hex colours for all the steps(index) from the above Branca colormap? Asked By: Ailurophile || Source Answers: The source code …

Total answers: 2