Curriculum
Course: NumPy
Login

Curriculum

NumPy

Text lesson

Seaborn Module

Visualize Distributions With Seaborn

Seaborn is a library built on top of Matplotlib for plotting graphs, and it will be used to visualize random distributions.

sns1

Install Seaborn.

If you have Python and PIP installed on your system, you can install it using the following command:

C:\Users\Your Name>pip install seaborn

If you’re using Jupyter, you can install Seaborn with this command:

C:\Users\Your Name>!pip install seaborn

Distplots

Distplot, short for distribution plot, takes an array as input and generates a curve that represents the distribution of points within that array.

Import Matplotlib

Import the pyplot object of the Matplotlib module in your code using the following statement:

import matplotlib.pyplot as plt