In the last recipe, we have seen how colors can be used when plotting the graphs. If we want to visualize a data range with visual perceptual colors to get a sense of patterns in the data, it will be tedious to create color combinations that match with data changes in the range we are looking for. Matplotlib provides a range of pre-defined colormaps that can be leveraged to meet any specific requirement. Matplotlib also enables user-defined colormaps that will be covered in the next recipe.
Working with standard colormaps
Getting ready
We will be using the familiar Iris...