Drowning in seaborn palettes ?

Photo by Robert Katzki on Unsplash

In this article, we will see what is a color palette in seaborn, how to use them, what are the palettes seaborn provides and how to create a palette from colors.

What a program !

Color spaces

Before stepping into seaborn color palettes, let’s review what are the different color spaces we should know before going on:

  • the rgb space : a color is defined by a triplet of floating point value between 0 and 1, giving the proportion of red, blue and green. For example (0.1, 0.5, 0.9) would be mostly green, with some blue, and a little bit of red.


Image by author : the iris dataset with magma palette

Python plotting : All you should know about handling seaborn datasets

In this article, we will see what are the datasets sample that seaborn provides and how to work with them. We will also see that you can configure a local-dataset repo that integrates seamlessly with seaborn interface.

Let’s get started !

To demonstrate seaborn and its powerfull plotting functions, it is convenient to have sample datasets quickly available to plot. For this, seaborn provides a simple interface to load dataset into pandas dataframes.

List datasets

As of today (16/12/2020, seaborn v0.11), seaborn provides 18 datasets that are stored in a dedicated github repository :

In addition to browsing the seaborn-data repo, you…

Yoann Mocquin

Physics engineer by training, python by passion

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store