A simple helper package to adjust matplotlib plots to fit in LaTeX documents
Project description
latex-plot-styles
This project can be used to makte plots created with matplotlib nicer. It simplifys the styling options by providing a nice default configuration for thesis.
setup
latex-plot-styles can pe installed using pip:
pip install latex-plot-styles
To use the full functionality you need a running LaTeX installation on your system. On Debian based systems this can be installed using:
sudo apt install texlive-full
usage
Instead of configuring the styles and sizes for all your plots you can just do
import latex_plot_styles as lps
import matplotlib.pyplot as plt
lps.set_style()
fig, ax = plt.subplots(1, 1, figsize=lps.get_size())
...
plt.savefig("your_fig.pdf", bbox_inches="tight")
configure your own styles
To configure your own styles you have to create an object from class Config and give this config object to lps.set_style(your_config_object)
warning
This is just a small side project to simlify generating plots for my masters thesis. There are no automated tests, this is not ment for production, but feel free to use and adapt it for your own stuff.
changelog
0.1.0 basic funcitionality for matplotlib styles
0.1.1 fix typo in package name
0.1.2 change default colors to seaborn dark
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file latex_plot_styles-0.1.2.tar.gz.
File metadata
- Download URL: latex_plot_styles-0.1.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a47be3c7d01447f0178dae0c8edcde28ccf0c6b3d250208d17005347d2f5ccde
|
|
| MD5 |
159f851082ad40008a53225682ac7663
|
|
| BLAKE2b-256 |
b7b26a623fddd3df97588167e2bce704bb4e133297c8795f95a50ffc7983fe4a
|
Provenance
The following attestation bundles were made for latex_plot_styles-0.1.2.tar.gz:
Publisher:
push_release_to_pypi.yml on tobiweisss/latex-plot-styles
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
latex_plot_styles-0.1.2.tar.gz -
Subject digest:
a47be3c7d01447f0178dae0c8edcde28ccf0c6b3d250208d17005347d2f5ccde - Sigstore transparency entry: 184870552
- Sigstore integration time:
-
Permalink:
tobiweisss/latex-plot-styles@4c2cde074fa97534f47a1f9005bdcf70bda22c35 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tobiweisss
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
push_release_to_pypi.yml@4c2cde074fa97534f47a1f9005bdcf70bda22c35 -
Trigger Event:
push
-
Statement type:
File details
Details for the file latex_plot_styles-0.1.2-py3-none-any.whl.
File metadata
- Download URL: latex_plot_styles-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3730f0dfe2bc98e853f2e855e143701b62ade87900c142eb168faa8c3070e83
|
|
| MD5 |
174ca1d5fd840913877d58b403228511
|
|
| BLAKE2b-256 |
915f2d81b2087fce0c99587bf3f584c7340b7262344853cbf663bfb02ab66b8f
|
Provenance
The following attestation bundles were made for latex_plot_styles-0.1.2-py3-none-any.whl:
Publisher:
push_release_to_pypi.yml on tobiweisss/latex-plot-styles
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
latex_plot_styles-0.1.2-py3-none-any.whl -
Subject digest:
e3730f0dfe2bc98e853f2e855e143701b62ade87900c142eb168faa8c3070e83 - Sigstore transparency entry: 184870556
- Sigstore integration time:
-
Permalink:
tobiweisss/latex-plot-styles@4c2cde074fa97534f47a1f9005bdcf70bda22c35 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tobiweisss
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
push_release_to_pypi.yml@4c2cde074fa97534f47a1f9005bdcf70bda22c35 -
Trigger Event:
push
-
Statement type: