finesse.plotting.style package

Module contents

finesse.plotting.style.context(style, after_reset=False)

Sets matplotlib.pyplot parameters to use the given style type within the current context.

See list_styles() for a list of all available styles.

Parameters

stylestr

Name of the style to use.

after_resetbool

If True, apply style after resetting settings to their defaults; otherwise, apply style on top of the current settings.

Examples

To use the default.mplstyle style-sheet temporarily, use the with statement as so:

import finesse.plotting as fplt
with fplt.context('default'):
    ...
finesse.plotting.style.list_styles()

Lists all the styles (.mplstyle files) available to use.

Returns

list

A list containing the names of all available styles.

finesse.plotting.style.use(style)

Sets matplotlib.pyplot parameters to use the given style type.

See list_styles() for a list of all available styles.

Parameters

stylestr

Name of the style to use.

Examples

To set-up your plots to use the default.mplstyle style-sheet, simply write:

import finesse.plotting as fplt
fplt.use('default')