StonerPlots API¶
stonerplots Package¶
Main package file of stonerplots.
Importing :py:module`stonerplots` will make the various context managers available, it will also modify the lists of matplotlib named colours and update the central matplotlib dictionary of stylesheets.
- Attrs:
- default (settings):
A singleton insance of a simple class that stores default values for the styles, formats and filename. These defaults are common for all code that uses stonerplots after it has been first imported.
Functions¶
|
Format an integer as a string using a pattern and various representations. |
|
Convert a positive integer to Roman numeral representation. |
Classes¶
|
A context manager for applying plotting styles and saving matplotlib figures. |
|
A context manager for creating inset plots in matplotlib with minimal effort. |
|
A context manager for generating a vertical stack of subplots with shared x-axes. |
|
Context manager for creating multi-panel plots in Matplotlib. |
|
Context manager to facilitate plotting with dual Y-axes on a Matplotlib figure. |
|
Adjust the x and y axis tick formatters of plots created in the context handler. |
An axis tick label formatter that emits Tex formula mode code. |
|
|
An axis tick label formatter that emits Tex formula mode code. |