Module plottools.title

Enhance title text.

Enhanced axes member functions

Settings

Install/uninstall title functions

You usually do not need to call these functions. Upon loading the title module, install_title() is called automatically.

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 None are updated.

Call this function before you create any matplotlib figure.

Parameters

fontsize : float or string
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 : int or string
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 : float or 'auto'
Position title in axes relative units. 'auto' is auto positioning. Sets rcParam axes.titley.
pad : float or string
Pad between axes and title in points. Sets rcParam axes.titlepad.
def install_title()

Patch the mpl.axes.Axes.set_title() function.

See Also

uninstall_title()

def uninstall_title()

Uninstall code for title.

Call this function to disable anything that was installed by install_title().

See Also

install_title()