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
- Host: GitHub
- URL: https://github.com/dhi/matplotlib-styles
- Owner: DHI
- Created: 2021-10-27T09:28:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-27T09:56:14.000Z (over 3 years ago)
- Last Synced: 2025-01-05T07:15:09.566Z (5 months ago)
- Language: Jupyter Notebook
- Size: 33.2 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.