Skip to main content

Pimp up my matplotlib plots

Project description

PimpMyPLT

This package adds an pythonic way to modify your matplotlib.rcParams .

Installation

> pip install pimpmyplt

Usage

import matplotlib.pyplot as plt
import pimpmyplt
from pimpmyplt.pimps import PimpUseTeX, PimpTightLayout, PimpSaveFigPNG

modifications = [
    PimpUseTeX(),
    PimpTightLayout(),
    PimpSaveFigPNG(dpi=400),
]
composed = pimpmyplt.compose(modifications)
plt.rcParams.update(composed)

print(dict(composed))
{'savefig.format': 'png', 'savefig.dpi': 400, 'figure.autolayout': True, 'text.usetex': True, 'font.family': 'serif', 'font.serif': 'cm'}

Why?

Well, good question as there are easy ways to modify the rcParams. PimpMyPLT is just a bit more pythonic. It's easy to write your own Pimper class (like PimpUseTeX , ...) and add functionality. But this project is in a very early development stage, so don't rely on it...

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

pimpmyplt-0.0.5.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

pimpmyplt-0.0.5-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file pimpmyplt-0.0.5.tar.gz.

File metadata

  • Download URL: pimpmyplt-0.0.5.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.6.0

File hashes

Hashes for pimpmyplt-0.0.5.tar.gz
Algorithm Hash digest
SHA256 3db834fcf411968b8aaf99e28fc10760c0424e1f5e7e9f95dffd15d2d81b4d30
MD5 dbada29a73e0207971650a0e040728ac
BLAKE2b-256 df6de85babd0321ee5b46cef802059cce13af78cbf0acd28ead2f7dab590a19d

See more details on using hashes here.

File details

Details for the file pimpmyplt-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pimpmyplt-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.6.0

File hashes

Hashes for pimpmyplt-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8a5d1204baa1300a9ffa30ee9dd4807e798e5344ed9df5ca79f10130f2e82071
MD5 d16d65cf483a27dae5b620435b207083
BLAKE2b-256 37340d31b8727e04a7695a599e80913b060f975fa22e31973c83aadb35dcab87

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page