GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Installation
  • Documentation
  • Examples
  • Tutorials
  • Contributing

This view

  • Original page
  • New address

GeezerVison is showing matplotlib.org — matplotlib.pyplot.title — Matplotlib 3.1.2 documentation

You are reading an old version of the documentation (v3.1.1). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.title.html
Version 3.1.2
matplotlib
Fork me on GitHub

Navigation

  • index
  • modules |
  • next |
  • previous |
  • home| 
  • contents »
  • API Overview »
  • matplotlib.pyplot »
  • matplotlib.pyplot »

Quick search

Table of Contents

  • matplotlib.pyplot.title
    • Examples using matplotlib.pyplot.title

Related Topics

  • Documentation overview
    • API Overview
      • matplotlib.pyplot
        • matplotlib.pyplot
          • Previous: matplotlib.pyplot.tight_layout
          • Next: matplotlib.pyplot.tricontour
Show Page Source

matplotlib.pyplot.title¶

matplotlib.pyplot.title(label, fontdict=None, loc='center', pad=None, **kwargs)[source]¶

Set a title for the 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.

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'

pad : float

The offset of the title from the top of the axes, in points. Default is None to use rcParams['axes.titlepad'].

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¶

../../_images/sphx_glr_bar_stacked_thumb.png

Stacked Bar Graph

../../_images/sphx_glr_markevery_prop_cycle_thumb.png

prop_cycle property markevery in rcParams

../../_images/sphx_glr_masked_demo_thumb.png

Masked Demo

../../_images/sphx_glr_nan_test_thumb.png

Nan Test

../../_images/sphx_glr_psd_demo_thumb.png

Psd Demo

../../_images/sphx_glr_geo_demo_thumb.png

Geographic Projections

../../_images/sphx_glr_subplot_thumb.png

Multiple subplots

../../_images/sphx_glr_multiline_thumb.png

Multiline

../../_images/sphx_glr_text_fontdict_thumb.png

Controlling style of text and labels using a dictionary

../../_images/sphx_glr_titles_demo_thumb.png

Titles Demo

../../_images/sphx_glr_usetex_fonteffects_thumb.png

Usetex Fonteffects

../../_images/sphx_glr_pyplot_mathtext_thumb.png

Pyplot Mathtext

../../_images/sphx_glr_pyplot_scales_thumb.png

Pyplot Scales

../../_images/sphx_glr_pyplot_text_thumb.png

Pyplot Text

../../_images/sphx_glr_plot_solarizedlight2_thumb.png

Solarized Light stylesheet

../../_images/sphx_glr_ginput_manual_clabel_sgskip_thumb.png

Interactive functions

../../_images/sphx_glr_trifinder_event_demo_thumb.png

Trifinder Event Demo

../../_images/sphx_glr_findobj_demo_thumb.png

Findobj Demo

../../_images/sphx_glr_multipage_pdf_thumb.png

Multipage PDF

../../_images/sphx_glr_set_and_get_thumb.png

Set And Get

../../_images/sphx_glr_table_demo_thumb.png

Table Demo

../../_images/sphx_glr_zorder_demo_thumb.png

Zorder Demo

../../_images/sphx_glr_custom_scale_thumb.png

Custom scale

../../_images/sphx_glr_sankey_basics_thumb.png

The Sankey class

../../_images/sphx_glr_svg_histogram_sgskip_thumb.png

SVG Histogram

../../_images/sphx_glr_usage_thumb.png

Usage Guide

../../_images/sphx_glr_pyplot_thumb.png

Pyplot tutorial

© Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2018 The Matplotlib development team.
Last updated on Jan 05, 2020. Created using Sphinx 1.8.5. Doc version v3.1.1-79-g90d53b526.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.