Session Ready
Exercise

Creating Custom Palettes

Choosing a cohesive palette that works for your data can be time consuming. Fortunately, Seaborn provides the color_palette() function to create your own custom sequential, categorical, or diverging palettes. Seaborn also makes it easy to view your palettes by using the palplot() function.

In this exercise, you can experiment with creating different palettes.

Instructions 1/3
undefined XP
  • 1

    Create and display a Purples sequential palette containing 8 colors.

    • 2

      Create and display a palette with 10 colors using the husl system.

    • 3

      Create and display a diverging palette with 6 colors coolwarm.