- 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
How to plot multiple Seaborn Jointplot in Subplot using Matplotlib?
To plot multiple Seaborn jointplot, we can use the jointplot() method.
Steps
Add a subplot to the current figure.
Create a dictionary, with some keys.
Create a dataframe using Pandas.
Make a jointplot using the jointplot() method.
To plot the curves, use the plot() method.
To display the figure, use the show() method.
Example
from matplotlib import pyplot as plt import pandas as pd import seaborn as sns plt.rcParams["figure.figsize"] = [7.50, 3.50] plt.rcParams["figure.autolayout"] = True plt.subplot() d = { 'y=1/x': [1 / i for i in range(1, 10)], 'y=x': [i for i in range(1, 10)], 'y=x^2': [i * i for i in range(1, 10)], 'y=x^3': [i * i * i for i in range(1, 10)] } df = pd.DataFrame(d) jg = sns.jointplot(data=df) jg.plot(sns.scatterplot, sns.histplot) plt.show()
Output
- Related Articles
- How to plot a non-square Seaborn jointplot or JointGrid? (Matplotlib)
- How to plot a jointplot with 'hue' parameter in Seaborn? (Matplotlib)
- How to plot multiple histograms on same plot with Seaborn using Matplotlib?
- How to customize the axis label in a Seaborn jointplot using Matplotlib?
- Add minor gridlines to Matplotlib plot using Seaborn
- How to turn off error bars in Seaborn Bar Plot using Matplotlib?
- Plot multiple columns of Pandas DataFrame using Seaborn
- How to plot a pcolor colorbar in a different subplot in Matplotlib?
- How to add a legend on Seaborn facetgrid bar plot using Matplotlib?
- How to plot multiple graphs in Matplotlib?
- How to save a plot in Seaborn with Python (Matplotlib)?
- How to plot with multiple color cycle using cycler property in Matplotlib
- How to increase the font size of the legend in my Seaborn plot using Matplotlib?
- How to plot two Seaborn lmplots side-by-side (Matplotlib)?
- How do I plot two countplot graphs side by side in Seaborn using Matplotlib?

Advertisements