Skip to content

fschuch/figure-scale

Repository files navigation

Scale your matplotlib figures

Figure scale logo

Publication quality figures start here

QA CI CodeQL pre-commit.ci statusQuality Gate StatusCoverage
Package PyPI - Version PyPI - Python Version
Meta Wizard Template Checked with mypy Hatch project Ruff PyPI - License EffVer Versioning

Usage

import matplotlib.pyplot as plt
import figure_scale as fs
figsize = fs.FigureScale(4.0, 2.0, units="in")
plt.rcParams.update({'figure.figsize' : figsize})
fig, ax = plt.subplots(figsize=figsize)
with figsize():
    fig, ax = plt.subplots()
@figsize()
def my_plot():
    ...

Installation

pip install figure-scale

Copyright and License

© 2023 Felipe N. Schuch. All content is under MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Languages