Skip to main content

Scale your Matplotlib figures

Figure scale logo

Publication quality figures start here


  • QA: CI CodeQL pre-commit.ci status Quality Gate Status Coverage
  • Package: PyPI - Version PyPI - Python Version
  • Meta: Wizard Template Checked with mypy Hatch project Ruff PyPI - License EffVer Versioning

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.

Release files for figure-scale 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for figure-scale 0.1.0
File Size Uploaded
figure_scale-0.1.0.tar.gz 34.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for figure-scale 0.1.0
File Interpreter ABI Platform
figure_scale-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 42.5 kB

Release files / figure_scale-0.1.0.tar.gz

Download URL figure_scale-0.1.0.tar.gz
Size 34.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7f86f94cac55f4e16802b1a620624282b4f40c718b0943695ca12558c52a1fb1
BLAKE2b-256 checksum
How to use checksums
45f247d93572a203cdbff2afc83a52285bbc8ddb2a72deac59a09109e723a93d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 5, 2025.

Transparency log

Release files / figure_scale-0.1.0-py3-none-any.whl

Download URL figure_scale-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79f3dd264830813b605a799f1aef5fca0ced7d8e330dd37306b78d37d2250009
BLAKE2b-256 checksum
How to use checksums
d61aa7355b93f4ee8aead44d08d13dfdacf364a2044a1dc1a08af4b75d9a26c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 5, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page