matplotlib


Travis-CI:

Table Of Contents

This Page

matplotlib.figure.Figure

class matplotlib.figure.Figure(figsize=None, dpi=None, facecolor=None, edgecolor=None, linewidth=0.0, frameon=None, subplotpars=None, tight_layout=None)

The Figure instance supports callbacks through a callbacks attribute which is a matplotlib.cbook.CallbackRegistry instance. The events you can connect to are ‘dpi_changed’, and the callback will be called with func(fig) where fig is the Figure instance.

patch
The figure patch is drawn by a matplotlib.patches.Rectangle instance
suppressComposite
For multiple figure images, the figure will make composite images depending on the renderer option_image_nocomposite function. If suppressComposite is True|False, this will override the renderer.
figsize
w,h tuple in inches
dpi
Dots per inch
facecolor
The figure patch facecolor; defaults to rc figure.facecolor
edgecolor
The figure patch edge color; defaults to rc figure.edgecolor
linewidth
The figure patch edge linewidth; the default linewidth of the frame
frameon
If False, suppress drawing the figure frame
subplotpars
A SubplotParams instance, defaults to rc
tight_layout
If False use subplotpars; if True adjust subplot parameters using tight_layout() with default padding. When providing a dict containing the keys pad, w_pad, h_pad and rect, the default tight_layout() paddings will be overridden. Defaults to rc figure.autolayout.