Module: style

This module defines styles that tweak matplotlib rc parameters. In addition, you can override pre-defined styles with “mplstyle” files in the current directory and your home directory (~). See “Getting Started” in the mpltools documentation for details.

Functions

use
Redefine rc parameters using specified style.
lib
Style library.
baselib
Style library defined by mpltools (i.e. before user definitions).
mpltools.style.use([name, use_baselib]) Use matplotlib rc parameters from a pre-defined name or from a file.

use

mpltools.style.use(name=None, use_baselib=False)

Use matplotlib rc parameters from a pre-defined name or from a file.

Parameters :

name : str or list of str

Name of style. For list of available styles see style.available. If given a list, each style is applied from first to last in the list.

use_baselib : bool

If True, only use styles defined in mpltools/style (without user’s customization).

Table Of Contents

Previous topic

Module: special

Next topic

Module: util