Currently set to Index
Currently set to Follow
Skip main navigation

Getting started with Seaborn

Video on getting started with Seaborn
(lively music) (mouse clicking) Similar to matplotlib, seaborn is a Python plotting library for creating data in charts. It builds on top of Matplotlib to allow you to create better looking charts and data comparisons using fewer lines of code. Here is a comparison of drawing bar charts using matplotlib versus seaborn. It integrates well with Pandas DataFrames and allows you to build complex plots of relationships. It can operate on a whole DataFrame and pull out the data itself. Let’s look at some of the differences between the two libraries. Matplotlib is procedural. Each step to generate a visualisation needs to be provided, whereas seaborn is more imperative and semantic.
Technically, for matplotlib if we say draw the plot with x values petal length and y values petal width for Setosa. Draw the plot for x values petal length and y values petal width for Versicolor. The colour of set Setosa points should be Green and the colour of set Versicolor points should be Blue. Then for seaborn, we effectively just say show me a comparison of petal width and length with different colours for each variety. Seaborn should be preferred to matplotlib if you want to make comparisons between datasets quickly. In this section of the course, you will explore numerical plots and learn to draw them.
Plots are the way for visualising the relationship between variables, and these variables can either be numerical or categorical in nature, such as group, class or division. In this section, we’ll look at numerical plots, which involve numerical variable. Compare and realise trends over time. Scatter plots and line plots are examples of numerical plots. You’ll learn to create scatter plots from an Iris dataset to depict the various species of the flower. You’ll also learn to create line plots using a dataset of the number of passengers taking flights in the years 1949 to 1960. However, before we jump straight to the topic, we would love to know what are you expecting to learn in this section?
Is there anything specific you’re excited to learn about? Don’t forget to share your thoughts in the comments after this video. So let’s get started.
Before we delve any deeper and get ready for an immersive experience of learning to build plots using Seaborn, watch this video to:
  • explore the various features of Seaborn and the importance of such Python libraries for data visualisation
  • understand how Seaborn is different from or, even in some cases, similar to Matplotlib
  • identify the various aspects of the library that you will learn in this step of the course.

Download your Jupyter Notebook

Before you progress any further this week, download your accompanying Jupyter Notebook. The Notebook contains only the code snippets that you can run to get an immersive and interactive experience as well as instant outputs of the codes alongside the explanations.
Make best use of this opportunity to familiarise yourself with using the Notebook.
Download: Introduction to Seaborn
You’ll find a set of interesting activities to check your knowledge later on in this course.

Data sets

Download the zipped file here containing the datasets as CSV files that you would require to conduct the demonstrations in this week. Be sure to extract the files and save them individually in the same folder as your Jupyter Notebooks.
Download: Data sets
All the data in the zip file is sourced from the Github link. [1]


  1. Github dataset [Internet]. Github; [date unknown]. Available from:
This article is from the free online

Data Visualisation with Python: Seaborn and Scatter Plots

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education