finesse.plotting.style package
Module contents
- finesse.plotting.style.context(style, after_reset=False)
Sets
matplotlib.pyplotparameters 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.mplstylestyle-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 (
.mplstylefiles) available to use.Returns
- list
A list containing the names of all available styles.
- finesse.plotting.style.use(style)
Sets
matplotlib.pyplotparameters 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.mplstylestyle-sheet, simply write:import finesse.plotting as fplt fplt.use('default')