- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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 change the figuresize using Seaborn factorplot in Matplotlib?
To change the figuresize using Seaborn factorplot, we can take the following Steps −
Load the exercise data using load_dataset() method.
Using factorplot() method, change figure size by customising the size and aspect values.
To display the figure, use the show() method.
Example
import seaborn as sns from matplotlib import pyplot as plt plt.rcParams["figure.figsize"] = [7.50, 3.50] plt.rcParams["figure.autolayout"] = True exercise = sns.load_dataset("exercise") sns.factorplot("kind", "pulse", "diet", exercise, kind="point", size=5, aspect=2) plt.show()
Output
- Related Articles
- How to repress scientific notation in factorplot Y-axis in Seaborn / Matplotlib?
- How to change the linewidth and markersize separately in a factorplot in Matplotlib?
- How can factorplot be used in Seaborn to visualize data in Python?
- How to adjust transparency (alpha) in Seaborn pairplot using Matplotlib?
- How to plot multiple Seaborn Jointplot in Subplot using Matplotlib?
- How to customize the axis label in a Seaborn jointplot using Matplotlib?
- How to change the curve using radiobuttons in Matplotlib?
- How to make a heatmap square in Seaborn FacetGrid using Matplotlib?
- How to label and change the scale of a Seaborn kdeplot's axes? (Matplotlib)
- Add minor gridlines to Matplotlib plot using Seaborn
- How to turn off error bars in Seaborn Bar Plot using Matplotlib?
- How to add percentages on top of bars in Seaborn using Matplotlib?
- How to limit the number of groups shown in a Seaborn countplot using Matplotlib?
- How to increase the font size of the legend in my Seaborn plot using Matplotlib?
- Rotate xtick labels in Seaborn boxplot using Matplotlib

Advertisements