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, PimpSaveFig
modifications = [
PimpUseTeX(),
PimpTightLayout(),
PimpSaveFig(format="png", 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.4.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file pimpmyplt-0.0.4.tar.gz
.
File metadata
- Download URL: pimpmyplt-0.0.4.tar.gz
- Upload date:
- Size: 4.6 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 | fdeb18821cbdc1edf1f033de7b92e1d04d1a8847f7b3d7da866a013b79fd1c4d |
|
MD5 | 8a7f8d9d446a9e3ce172c49fa29dffcb |
|
BLAKE2b-256 | be592d03248fbce2c5c06638797422664ffa2a8ab1013df054479b0d62c45f58 |
File details
Details for the file pimpmyplt-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: pimpmyplt-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.4 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 | 0974e24a56b5fa0feb7bb32a8e3625b1275797817024797414c57a2d75920a2c |
|
MD5 | 3d9849c15a0668738abdf4d71a8c2652 |
|
BLAKE2b-256 | 36b351c5aa28339f9fe834e7c37e1068c2120b8215be1efbffc474c433db42b7 |