### Navigation

- index
- modules |
- next |
- previous |
- home|
- examples|
- tutorials|
- pyplot|
- docs »
- The Matplotlib API »
- matplotlib.pyplot »

# matplotlib.pyplot.title

`matplotlib.pyplot.``title`(s, *args, **kwargs)

  Set a title of the current axes.

  Set one of the three available axes titles. The available titles are positioned above the axes in the center, flush with the left edge, and flush with the right edge.

  See also

  See `text()` for adding text to the current axes

  Parameters: | label : str Text to use for the title fontdict : dict A dictionary controlling the appearance of the title text, the default `fontdict` is: {‘fontsize’: rcParams[‘axes.titlesize’], ‘fontweight’ : rcParams[‘axes.titleweight’], ‘verticalalignment’: ‘baseline’, ‘horizontalalignment’: loc} loc : {‘center’, ‘left’, ‘right’}, str, optional Which title to set, defaults to ‘center’
  Returns: | text : `Text` The matplotlib text instance representing the title
  Other Parameters:
  | kwargs : text properties Other keyword arguments are text properties, see `Text` for a list of valid text properties.

## Examples using `matplotlib.pyplot.title`

Animation Demo

Simple animation examples

Saving an animation

Custom scale

The Sankey class

Trifinder Event Demo

Contour Corner Mask

Contour Demo

Contour Image

Contour Label Demo

Contourf Demo

Griddata Demo

Demonstration of advanced quiver and quiverkey functions

Tricontour Demo

Tricontour Smooth Delaunay

Tricontour Smooth User

Tricontour Vs Griddata

Triinterp Demo

Tripcolor Demo

Triplot Demo

Manual Contour

Tight Bbox Test

Axes Demo

Stacked Bar Graph

Figure Title

Findobj Demo

Geographic Projections

Interactive functions

Invert Axes

Log Bar

Log Demo

Masked Demo

Multiline

Multipage PDF

Nan Test

Psd Demo

Set And Get

Simple Plot

Table Demo

Usetex Fonteffects

Zorder Demo

Pyplot Mathtext

Pyplot Scales

Pyplot Text

Fixing common date annoyances

XKCD

Multiple subplots

Subplot Demo

Font Table TTF

Controlling style of text and labels using a dictionary

Titles Demo

SVG Histogram

Pyplot tutorial

Usage Guide