Make Matplotlib figures with the correct scale.
Project description
Scale your Matplotlib figures
Publication quality figures start here
About
The figure-scale library is designed to help you create publication-quality figures with precise size control in Matplotlib.
It provides a convenient way to specify figure dimensions in various units (inches, millimeters, centimeters, points, etc.) and ensures consistent sizing across different plotting contexts.
Key Features:
- Multiple unit support: Specify dimensions in inches, millimeters, centimeters, points, and more, it is extendable by custom user provided units for convenience
- Flexible sizing: Define figures using width/height, or width/aspect, or height/aspect
- Easy integration: Works seamlessly with matplotlib's existing figure creation methods
- Context management: Use as context managers or decorators for localized figure sizing
- Lightweight: Minimal dependencies, built on top of Matplotlib only
Check out the documentation for more details on how to use the library and its features: https://docs.fschuch.com/figure-scale.
See also the blog post that inspired this package: Publication-Quality Plots in Python with Matplotlib. It also covers Localization, Style, Dimensions, and File Format of figures in Matplotlib.
Copyright and License
© 2023 Felipe N. Schuch. All content is under MIT License.
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 figure_scale-0.1.0.tar.gz.
File metadata
- Download URL: figure_scale-0.1.0.tar.gz
- Upload date:
- Size: 34.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f86f94cac55f4e16802b1a620624282b4f40c718b0943695ca12558c52a1fb1
|
|
| MD5 |
cb29048ae6ad111a89d347e5b9d4e3c9
|
|
| BLAKE2b-256 |
45f247d93572a203cdbff2afc83a52285bbc8ddb2a72deac59a09109e723a93d
|
Provenance
The following attestation bundles were made for figure_scale-0.1.0.tar.gz:
Publisher:
ci.yaml on fschuch/figure-scale
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
figure_scale-0.1.0.tar.gz -
Subject digest:
7f86f94cac55f4e16802b1a620624282b4f40c718b0943695ca12558c52a1fb1 - Sigstore transparency entry: 264427389
- Sigstore integration time:
-
Permalink:
fschuch/figure-scale@1347f5f7242946fa5b32b1c4372830a3d6bd3c0a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/fschuch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@1347f5f7242946fa5b32b1c4372830a3d6bd3c0a -
Trigger Event:
push
-
Statement type:
File details
Details for the file figure_scale-0.1.0-py3-none-any.whl.
File metadata
- Download URL: figure_scale-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 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 |
79f3dd264830813b605a799f1aef5fca0ced7d8e330dd37306b78d37d2250009
|
|
| MD5 |
71b30474f1276e8ac221169fde6178b4
|
|
| BLAKE2b-256 |
d61aa7355b93f4ee8aead44d08d13dfdacf364a2044a1dc1a08af4b75d9a26c6
|
Provenance
The following attestation bundles were made for figure_scale-0.1.0-py3-none-any.whl:
Publisher:
ci.yaml on fschuch/figure-scale
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
figure_scale-0.1.0-py3-none-any.whl -
Subject digest:
79f3dd264830813b605a799f1aef5fca0ced7d8e330dd37306b78d37d2250009 - Sigstore transparency entry: 264427390
- Sigstore integration time:
-
Permalink:
fschuch/figure-scale@1347f5f7242946fa5b32b1c4372830a3d6bd3c0a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/fschuch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@1347f5f7242946fa5b32b1c4372830a3d6bd3c0a -
Trigger Event:
push
-
Statement type: