NumPy Tutorial · NumPy Random

Seaborn Module

Learn all about Seaborn Module in this comprehensive tutorial.

5 min read advanced
  • Seaborn is a library that uses Matplotlib underneath to plot graphs.
  • If you have Python and PIP already installed on a system, install it using this command:
  • Displot stands for distribution plot, it takes as input an array and plots a curve corresponding to the distribution of points in the array.
  • You can learn about the Matplotlib module in our Matplotlib Tutorial.

Visualize Distributions With Seaborn

Seaborn is a library that uses Matplotlib underneath to plot graphs. It will be used to visualize random distributions.

Tutorial image

Install Seaborn.

If you have Python and PIP already installed on a system, install it using this command:

python

If you use Jupyter, install Seaborn using this command:

python

Displots

Displot stands for distribution plot, it takes as input an array and plots a curve corresponding to the distribution of points in the array.

Import Matplotlib

python

You can learn about the Matplotlib module in our Matplotlib Tutorial.

Import Seaborn

python

Plotting a Displot

python

Plotting a Displot Without the Histogram

python
Note: Note: We will be using: sns.displot(arr, kind="kde") to visualize random distributions in this tutorial.

Module quiz

2 questions
1

Which of the following is true about Seaborn Module?

2

What is the most common pitfall when working with Seaborn Module?

Answer all questions to submit.