January 2020
Beginner to intermediate
432 pages
11h 24m
English
In the following recipes, we will be plotting multiple lines on the same plots, each of them representing a different model specification. That is why we want to make sure these lines are clearly distinguishable, especially in black and white. For that reason, from now until the last recipe of this chapter, we will be using a different color palette for the plots, that is, cubehelix:
plt.set_cmap('cubehelix')sns.set_palette('cubehelix')COLORS = [plt.cm.cubehelix(x) for x in [0.1, 0.3, 0.5, 0.7]]
In the preceding code, we defined a list of four colors. We will use these instead of using the standard color codes (red/green/blue/gray).
Read now
Unlock full access