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.6.tar.gz
(5.0 kB
view details)
Built Distribution
File details
Details for the file pimpmyplt-0.0.6.tar.gz
.
File metadata
- Download URL: pimpmyplt-0.0.6.tar.gz
- Upload date:
- Size: 5.0 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 | b827f4ea157fbbb9d201b2f544fc6e27b3a49f7b3a544a604d3a1f8d38b43671 |
|
MD5 | a3e41e60a1c5f52bc6d611c564967499 |
|
BLAKE2b-256 | 09fa59120564d171215548585657d1e90df431aa7ba3d3d05c85b46ea623a799 |
File details
Details for the file pimpmyplt-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: pimpmyplt-0.0.6-py3-none-any.whl
- Upload date:
- Size: 6.1 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 | a1a4119af3d1a9c6dab98102f67291f3031d85f9306aa177edb6bdd0a9c310c5 |
|
MD5 | 8453cabeedd7525b28718ec75575648f |
|
BLAKE2b-256 | d31ca2424fe937495a28c90bbc9bfff4dd15bf4f3dda9c97ce92a9efdcc5cd60 |