An open API service indexing awesome lists of open source software.

https://github.com/dhi/matplotlib-styles

Matplotlib Styles for DHI Office Report Template
https://github.com/dhi/matplotlib-styles

Last synced: 3 months ago
JSON representation

Matplotlib Styles for DHI Office Report Template

Awesome Lists containing this project

README

        

# matplotlib-styles

Matplotlib Styles for DHI Office Report Template

Many figures in reports are generated by Matplotlib in Python these days.

These Matplotlib styles make sure that the figures have a consistent layout and fit nicely into the DHI Report templates. They allow to set the most important properties of a figure (tight layout, width=15 cm, axis and label font fitting to DHI body text) with a one-liner, e.g. `plt.style.use("DHI")`.

To install, simply copy the files to `C:\users\\.matplotlib\stylelib` (create the folder if missing).

See [this notebook](https://github.com/DHI/matplotlib-styles/blob/main/example-using-DHI-matplotlib-styles.ipynb) for further explanations.