English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Matplotlib Figure Class

The matplotlib.figure module contains the Figure class. It is the top-level container for all plot elements. A Figure object is instantiated by calling the figure() function from the pyplot module -

# Filename : example.py
# Copyright : 2020 By w3codebox
# Author by : www.oldtoolbag.com
# Date : 2020-08-08
fig = plt.figure()

The following table is other parameters -

ParameterDescription
FigsizeTuple (width,height) in Inches
DpiPoints Per Inch
FacecolorFace Color of the Graph
EdgecolorEdge Color of the Graph
LinewidthBorder Width