Module plottools.title
Enhance title text.
Enhanced axes member functions
set_title(): title with LaTeX support.
Settings
title_params(): set default parameter for the title module.
Install/uninstall title functions
You usually do not need to call these functions. Upon loading the title
module, install_title() is called automatically.
install_title(): install functions of the title module in matplotlib.uninstall_title(): uninstall all code of the title module from matplotlib.
Functions
def set_title(ax, label, *args, **kwargs)-
Title with LaTeX support.
Uses
latex.translate_latex_text()to improve LaTeX mode of title.Parameters
Same as
mpl.axes.Axes.set_title(). def title_params(fontsize=None, fontweight=None, location=None, color=None, ypos=None, pad=None)-
Set default parameter for the title module.
Only parameters that are not
Noneare updated.Call this function before you create any matplotlib figure.
Parameters
fontsize:floatorstring- Set font size for title. Either the font size in points,
or a string like 'medium', 'small', 'x-small', 'large', 'x-large'.
Sets rcParam
axes.titlesize. fontweight:intorstring- Set weight of title font. A numeric value in range 0-1000,
'ultralight', 'light', 'normal', 'regular', 'book', 'medium',
'roman', 'semibold', 'demibold', 'demi', 'bold', 'heavy',
'extra bold', 'black'
Sets rcParam
axes.titleweight. location:string- Location of the title. One of 'left', 'right', 'center'.
Sets rcParam
axes.titlelocation. color:matplotlib color- Color of the title or 'auto'.
Sets rcParam
axes.titlecolor. ypos:floator'auto'- Position title in axes relative units. 'auto' is auto positioning.
Sets rcParam
axes.titley. pad:floatorstring- Pad between axes and title in points.
Sets rcParam
axes.titlepad.
def install_title()def uninstall_title()-
Uninstall code for title.
Call this function to disable anything that was installed by
install_title().See Also