Using default palettes
Seaborn includes several default palettes that can be easily applied to your plots.
In this example, we will look at the impact of two different palettes on the same
displot.
Questo esercizio fa parte del corso
Intermediate Data Visualization with Seaborn
Istruzioni dell'esercizio
- Create a
forloop to show the difference between thebrightandcolorblindpalette. - Set the palette using the
set_palette()function. - Use a
displotof thefmr_3column.
esercizio interattivo pratico
Prova questo esercizio completando questo codice di esempio.
# Loop through differences between bright and colorblind palettes
for p in ['____', '___']:
sns.set_palette(___)
sns.___(df['fmr_3'])
plt.show()
# Clear the plots
plt.clf()