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
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
pimpmyplt-0.0.5.tar.gz
(4.8 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3db834fcf411968b8aaf99e28fc10760c0424e1f5e7e9f95dffd15d2d81b4d30 |
|
MD5 | dbada29a73e0207971650a0e040728ac |
|
BLAKE2b-256 | df6de85babd0321ee5b46cef802059cce13af78cbf0acd28ead2f7dab590a19d |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a5d1204baa1300a9ffa30ee9dd4807e798e5344ed9df5ca79f10130f2e82071 |
|
MD5 | d16d65cf483a27dae5b620435b207083 |
|
BLAKE2b-256 | 37340d31b8727e04a7695a599e80913b060f975fa22e31973c83aadb35dcab87 |