Skip to main content

Context manager for matplotlib figures

Project description

Context manager for matplotlib figures.

Example:

from plox import Plox, rcParam
from pathlib import Path

# https://matplotlib.org/tutorials/introductory/customizing.html
style = {
    rcParam.Legend.fontsize: "large",
    rcParam.Xtick.labelsize: "large",
    rcParam.Ytick.labelsize: "large",
}

with Plox(style) as px:
    px.a.plot([1, 2, 3], [4, 3, 5], 'o--')
    px.f.savefig(Path(__file__).with_suffix('.png'))
    px.show()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plox-0.0.3.tar.gz (7.2 kB view hashes)

Uploaded source

Built Distribution

plox-0.0.3-py3-none-any.whl (8.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page