- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Plotting with seaborn using the matplotlib object-oriented interface
Seaborn is used to visualizing the random distribution and we can use matplotlib interface to show this distribution over a diagram.
We can take the following steps to show the diagram −
Figure level interface for drawing distribution plots onto a Face Grid. This function provides access to several approaches for visualizing the univariate or bivariate distribution of data, including subsets of data defined by semantic mapping and faceting across multiple subplots.
List of numbers can be passed in the above-defined method, i.e., displot().
To show the diagram, plt.show() can be used whereas plot was drawn using Seaborn.
Example
import matplotlib.pyplot as plt import seaborn as sns sns.displot([4, 5, 6, 7, 8, 9, 10, 11, 21, 23, 25, 27]) plt.show()
Output
- Related Articles
- Plotting error bars from a dataframe using Seaborn FacetGrid (Matplotlib)
- Plotting graph using seaborn in python.
- Plotting animated quivers in Python using Matplotlib
- Plotting a heatmap for 3 columns in Python with Seaborn
- Plotting multiple line graphs using Pandas and Matplotlib
- Plotting Pandas DataFrames in Pie Charts using Matplotlib
- Plotting scatter points with clover symbols in Matplotlib
- Interactive plotting with Python Matplotlib via command line
- Object-Oriented Databases
- How to deal with NaN values while plotting a boxplot using Python Matplotlib?
- How to plot multiple histograms on same plot with Seaborn using Matplotlib?
- Basic Concepts of Object Oriented Programming using C++
- Adding extra contour lines using Matplotlib 2D contour plotting
- How to get rid of grid lines when plotting with Seaborn + Pandas with secondary_y?
- Rotate xtick labels in Seaborn boxplot using Matplotlib

Advertisements