How to set a Seaborn chart figure size? Last Updated : 16 Aug, 2022 Comments Improve Suggest changes Like Article Like Report Seaborn is a Python data visualization library based on Matplotlib. It is used to draw attractive and informative statistical graphics. To adjust the figure size of the seaborn plot we will use the subplots function of matplotlib.pyplot. Examples to change the figure size of a seaborn axes matplotlib.pyplot.subplots() Create a figure and a set of subplots. It has a parameter called figsize which takes a tuple as an argument that contains the height and the width of the plot. It returns the figure and the array of axes. While calling the seaborn plot we will set the ax parameter equal to the array of axes that was returned by matplotlib.pyplot.subplots after setting the dimensions of the desired plot. Example 1: We will consider two students and plot their marks in a bar plot, and we will set the plot of size ( 4,5 ). Python3 # Importing libraries import seaborn as sns import matplotlib.pyplot as plt # Setting the data x = ["Student1", "Student2"] y = [70, 87] # setting the dimensions of the plot fig, ax = plt.subplots(figsize=(4, 5)) # drawing the plot sns.barplot(x, y, ax=ax) plt.show() Output: fig size ( 6,4 ) Example 2: We will draw a plot of size (6, 6). Python3 # Importing libraries import seaborn as sns import matplotlib.pyplot as plt # Setting the data x = ["Student1", "Student2"] y = [80, 68] # setting the dimensions of the plot fig, ax = plt.subplots(figsize=(6, 6)) # drawing the plot sns.barplot(x, y, ax=ax) plt.show() fig size ( 6,6 ) Example 3: In this example, We will create boxplot and set the size of a chart with figsize. Python3 # Importing libraries import seaborn as sns import matplotlib.pyplot as plt # Setting the data x = ["Student1", "Student2"] y = [70, 87] # setting the dimensions of the plot fig, ax = plt.subplots(figsize=(40, 5)) # drawing the plot sns.boxplot(x = y) plt.show() Output: Â Comment More infoAdvertise with us Next Article How to set a Seaborn chart figure size? H hg070401 Follow Improve Article Tags : Python Python-Seaborn Practice Tags : python Similar Reads How to set the title and fonts of your Seaborn Chart? In this article, we are going to see how to set the title and fonts in seaborn chart. Data Visualization is the presentation of data in pictorial format. It is extremely important for Data Analysis, primarily because of the fantastic ecosystem of data-centric Python packages and seaborn is an amazin 4 min read How to Create an Area Chart in Seaborn? In this article, we are going to see how to create an area chart in seaborn using Python. Area Charts are a great way to quickly and easily visualize things to show the average overtime on an area chart. Area charts are different from line graphs. Area charts are primarily used for the summation of 3 min read Change Axis Labels, Set Title and Figure Size to Plots with Seaborn Seaborn is Python's visualization library built as an extension to Matplotlib. Seaborn has Axes-level functions (scatterplot, regplot, boxplot, kdeplot, etc.) as well as Figure-level functions (lmplot, factorplot, jointplot, relplot etc.). Axes-level functions return Matplotlib axes objects with the 4 min read How to Create Subplots in Seaborn? Subplots are multiple individual plots arranged within a single figure which are organized in rows and columns. It allow us to display different visualizations side by side, saving space and improving clarity. It also support shared axes for consistent scaling which makes it easier to identify patte 3 min read How to Change Label Font Sizes in Seaborn Seaborn is a powerful Python visualization library that provides a high-level interface for drawing attractive and informative statistical graphics. One of its strong points is customization, allowing you to fine-tune various aspects of your plots, including font sizes of labels, titles, and ticks. 2 min read Like