matplotlib.figure.Figure.suptitle#

Figure.suptitle(t, **kwargs)[source]#

Add a centered super title to the figure.

Parameters:
tstr

The super title text.

xfloat, default: 0.5

The x location of the text in figure coordinates.

yfloat, default: 0.98

The y location of the text in figure coordinates.

horizontalalignment, ha{'center', 'left', 'right'}, default: center

The horizontal alignment of the text relative to (x, y).

verticalalignment, va{'top', 'center', 'bottom', 'baseline'}, default: top

The vertical alignment of the text relative to (x, y).

fontsize, sizedefault: rcParams["figure.titlesize"] (default: 'large')

The font size of the text. See Text.set_size for possible values.

fontweight, weightdefault: rcParams["figure.titleweight"] (default: 'normal')

The font weight of the text. See Text.set_weight for possible values.

Returns:
text

The Text instance of the super title.

Other Parameters:
fontpropertiesNone or dict, optional

A dict of font properties. If fontproperties is given the default values for font size and weight are taken from the FontProperties defaults. rcParams["figure.titlesize"] (default: 'large') and rcParams["figure.titleweight"] (default: 'normal') are ignored in this case.

**kwargs

Additional kwargs are matplotlib.text.Text properties.

Examples using matplotlib.figure.Figure.suptitle#

Marker reference

Marker reference

Mapping marker properties to multivariate data

Mapping marker properties to multivariate data

fill_between with transparency

fill_between with transparency

Plotting categorical variables

Plotting categorical variables

Image with masked values

Image with masked values

Multiple images with one colorbar

Multiple images with one colorbar

Image nonuniform

Image nonuniform

Errorbar subsampling

Errorbar subsampling

Cumulative distributions

Cumulative distributions

Artist customization in box plots

Artist customization in box plots

Violin plot basics

Violin plot basics

Multiple subplots

Multiple subplots

Create multiple subplots using plt.subplots

Create multiple subplots using plt.subplots

GridSpec with variable sizes and spacing

GridSpec with variable sizes and spacing

Gridspec for multi-column/row subplot layouts

Gridspec for multi-column/row subplot layouts

Figure subfigures

Figure subfigures

Inverted axis

Inverted axis

Figure labels: suptitle, supxlabel, supylabel

Figure labels: suptitle, supxlabel, supylabel

Date tick locators and formatters

Date tick locators and formatters

Log scale

Log scale

Spine placement

Spine placement

Text properties

Text properties

Scale invariant angle label

Scale invariant angle label

Usetex font effects

Usetex font effects

Create a colormap from a list of colors

Create a colormap from a list of colors

Grayscale style sheet

Grayscale style sheet

2D and 3D Axes in same figure

2D and 3D Axes in same figure

Simple Axes Divider 1

Simple Axes Divider 1

Mouse Cursor

Mouse Cursor

Figure/Axes enter and leave events

Figure/Axes enter and leave events

Evans test

Evans test

Pan/zoom events of overlapping axes

Pan/zoom events of overlapping axes

Stock prices over 32 years

Stock prices over 32 years

Arranging multiple Axes in a Figure

Arranging multiple Axes in a Figure

Axis autoscaling

Axis autoscaling

Plotting dates and strings

Plotting dates and strings

Placing colorbars

Placing colorbars

Constrained layout guide

Constrained layout guide

Choosing Colormaps in Matplotlib

Choosing Colormaps in Matplotlib

Writing mathematical expressions

Writing mathematical expressions

Text in Matplotlib

Text in Matplotlib