BaşlayınÜcretsiz başlayın

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.

Bu egzersiz, kursun bir parçasıdır

Intermediate Data Visualization with Seaborn

Kursa Göz Atın

Egzersiz talimatları

  • Create a for loop to show the difference between the bright and colorblind palette.
  • Set the palette using the set_palette() function.
  • Use a displot of the fmr_3 column.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# 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()
Kodu Düzenle ve Çalıştır