styles

typhon.plots.styles = <typhon.plots.common._StyleHandler object>

Handle matplotlib stylesheets shipped with typhon.

This handler serves several purposes:

  1. Return the absolute path to a typhon stylesheet:

>>> from typhon.plots import styles
>>> styles.get('typhon')
'/PATH/typhon/typhon/plots/stylelib/typhon.mplstyle'

or for backwards compatibility:

>>> styles('typhon')
'/PATH/typhon/typhon/plots/stylelib/typhon.mplstyle'
  1. Use style settings from a typhon stylesheet:

>>> styles.use('typhon')

You can also get/use several styles at a time:

>>> styles.use(['typhon', 'typhon-dark'])
Parameters:

name (str) – Style name.

Returns:

Absolute path to stylesheet.

Return type:

str