Colors in a 3-variable Plot
We also can change colors for the 3rd variable manually. To do that, we need to create a kind of a palette.
To set colors for a 3-variable plot:
It is important to create a new color palette for the hue variable and add this palette as an argument in the plot function.
The short list of the matplotlib
colors: blue, green, red, green/blue, yellow, purple, white, black, etc.
Let's change gender
colors in the Tips problem!
Tarea
- Set the
'blue'
color forbreakfast
,'purple'
forlunch
,'green'
fordinner
for the hue value. - Show the plot.
¿Todo estuvo claro?
Contenido del Curso
First Dive into seaborn Visualization
1. Nice to Meet you, seaborn!
First Dive into seaborn Visualization
Colors in a 3-variable Plot
We also can change colors for the 3rd variable manually. To do that, we need to create a kind of a palette.
To set colors for a 3-variable plot:
It is important to create a new color palette for the hue variable and add this palette as an argument in the plot function.
The short list of the matplotlib
colors: blue, green, red, green/blue, yellow, purple, white, black, etc.
Let's change gender
colors in the Tips problem!
Tarea
- Set the
'blue'
color forbreakfast
,'purple'
forlunch
,'green'
fordinner
for the hue value. - Show the plot.
¿Todo estuvo claro?