Close this search box.

Introduction to Visualize Distributions with Seaborn

In This Article, You Will learn about Visualize Distributions with Seaborn

Visualize Distributions with Seaborn – Before moving ahead, let’s know a bit of Python Numpy Tutorial

Seaborn is a library which uses Matplotlib for plotting graphs. It can be used to visualize random distributions.

Install Seaborn

Installation in Python –

>pip install seaborn

Installation in Jupyter

>!pip install seaborn


Distplot is an acronym for distribution plot. It takes in an array of points and plots a curve that corresponds to that distribution.

Import Matplotlib

import the pyplot object from Matplotlib into your code.

import matplotlib.pyplot as plt

You will learn later about Matplotlib Tutorial.

Import Seaborn

Import the Seaborn module into your code.

import seaborn as kl

Plotting a Displot

Example – Plotting a graph

import matplotlib.pyplot as plt
import seaborn as kl

kl.distplot([11, 12, 13, 14, 15])

As shown above, it returned a graph plotted with different points.

Plotting a Distplot Without the Histogram

Example – Plotting a graph without Histogram

import matplotlib.pyplot as plt
import seaborn as kl

kl.distplot([11, 12, 13, 14, 15], hist=False)

As it can be seen, it returned a graph plotted with different points.

If you find anything incorrect in the above-discussed topic and have any further questions, please comment below.

Like us on

Recent Post

Popular Post

Top Articles


Share on