Note
Go to the endto download the full example code.
Text and mathtext using pyplot#
Set the special text objectstitle,xlabel, andylabel through the dedicated pyplot functions. Additional textobjects can be placed in the Axes usingtext.
You can use TeX-like mathematical typesetting in all texts; see alsoWriting mathematical expressions.

References
The use of the following functions, methods, classes and modules is shownin this example: