API reference

andrey.viz.mpl.use#

andrey.viz.mpl.use(dark=False)[source]#

Apply the style to the global matplotlib rcParams, for the rest of the process.

Parameters:

dark (bool) – Select the dark palette instead of the light one.

Raises:

ModuleNotFoundError – If matplotlib is not installed. Install the extra: pip install 'andrey-core[viz]'.

See also

context

Scope the same style to a with block instead of the whole process.

Return type:

None