VOOZH about

URL: https://www.geeksforgeeks.org/python/change-figure-size-in-pandas-python/

⇱ Change figure size in Pandas - Python - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Change figure size in Pandas - Python

Last Updated : 23 Jul, 2025

Prerequisites: Pandas

The size of a plot can be modified by passing required dimensions as a tuple to the figsize parameter of the plot() method. it is used to determine the size of a figure object.

Syntax:

figsize=(width, height)

Where dimensions should be given in inches.

Approach

  • Import pandas.
  • Create or load data
  • Call the plot() function with a figsize parameter along with dimensions.

Example 1

Output:

👁 Image

Example 2

Output :

👁 Image

Example 3

Output :

👁 Image
Comment