Matplotlib 3.0 Cookbook
上QQ阅读APP看书,第一时间看更新

User-defined colors and colormaps

In the previous recipe, we learned how to leverage pre-defined colors and colormaps and how to  customize them  for specific needs. In this recipe, we will learn how to create our own colormaps. We will use the Iris dataset for this example.