https://github.com/dhi/environments
Administration of Python Environments commonly used within DHI
https://github.com/dhi/environments
Last synced: 3 months ago
JSON representation
Administration of Python Environments commonly used within DHI
- Host: GitHub
- URL: https://github.com/dhi/environments
- Owner: DHI
- Created: 2021-04-08T09:27:39.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-02T19:31:31.000Z (over 3 years ago)
- Last Synced: 2025-01-05T07:15:10.597Z (5 months ago)
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# environments
Administration of Python Environments commonly used within DHI.Use with Conda to install
# matplotlib-stylelib
These are matplotlib style that configures matplotlib figures to fit neatly into the DHI Office Report template:
Install these files in `C:\Users\\.matplotlib\stylelib` and use `plt.style.use("DHI")` to configure your
output figure to
- 15 cm width (column width of DHI Office Template)
- golden ratio to height
- tight layout
- label font size (axis and legend) fitting to Body Text.Other options:
- `plt.style.use("DHI-square")` : width 15 cm x height 15 cm
- `plt.style.use("DHI-wide")` : for wide column picture format
- `plt.style.use("DHI-portrait")` : Figure fits one page exactly, including caption
- `plt.style.use("DHI-landscape")` : Figure fits one page exactly, including caption, for landscape
- `plt.style.use("DHI-portrait-A3")` : Figure fits A3 page portrait exactly, good for appendices
- `plt.style.use("DHI-landscape-A3")` : Figure fits A3 page landscape exactly, good for appendices