Matplotlib color codes
Seaborn offers several options for modifying the colors of your visualizations.
The simplest approach is to explicitly state the color of the plot. A quick way
to change colors is to use the standard matplotlib color codes.
Cet exercice fait partie du cours
<cours>Intermediate Data Visualization with Seaborn</cours>Instructions de l’exercice
- Set the default Seaborn style and enable the
matplotlibcolor codes. - Create a
displotfor thefmr_3column usingmatplotlib's magenta (m) color code.
Exercice interactif pratique
Essayez cet exercice en complétant ce code d’exemple.
# Set style, enable color code, and create a magenta displot
sns.set(color_codes=____)
sns.displot(df['fmr_3'], color='____')
# Show the plot
plt.____()