matplotlib.pyplot.suptitle
-
matplotlib.pyplot.suptitle(*args, **kwargs)[source] -
Add a centered title to the figure.
kwargs are
matplotlib.text.Textproperties. Using figure coordinates, the defaults are:-
x : 0.5 - The x location of the text in figure coords
-
y : 0.98 - The y location of the text in figure coords
-
horizontalalignment : 'center' - The horizontal alignment of the text
-
verticalalignment : 'top' - The vertical alignment of the text
If the
fontpropertieskeyword argument is given then the rcParams defaults forfontsize(figure.titlesize) andfontweight(figure.titleweight) will be ignored in favour of theFontPropertiesdefaults.A
matplotlib.text.Textinstance is returned.Example:
fig.suptitle('this is the figure title', fontsize=12) -
Examples using matplotlib.pyplot.suptitle
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/2.2.3/api/_as_gen/matplotlib.pyplot.suptitle.html