styles
- typhon.plots.styles = <typhon.plots.common._StyleHandler object>
Handle matplotlib stylesheets shipped with typhon.
This handler serves several purposes:
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'
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'])