You are reading an old version of the documentation (v1.5.3). For the latest version see https://matplotlib.org/stable/

Matplotlib 2.0.0rc2 is available

Install the release candidate now!

matplotlib

Travis-CI:

This Page

pylab_examples example code: break.pyΒΆ

(Source code, png, hires.png, pdf)

../../_images/break.png
import matplotlib.pyplot as plt

plt.gcf().text(0.5, 0.95, 'Distance Histograms by Category is \
    a really long title')

plt.show()

Keywords: python, matplotlib, pylab, example, codex (see Search examples)