| Name | pimpmyplt JSON |
| Version |
0.0.5
JSON |
| download |
| home_page | None |
| Summary | Pimp up my matplotlib plots |
| upload_time | 2024-08-30 11:18:43 |
| maintainer | None |
| docs_url | None |
| author | Daniel Müller |
| requires_python | <4.0,>=3.12 |
| license | MIT |
| keywords |
|
| VCS |
|
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# PimpMyPLT
This package adds an pythonic way to modify your `matplotlib.rcParams` .
# Installation
```console
> pip install pimpmyplt
```
# Usage
```python
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](https://matplotlib.org/stable/users/explain/customizing.html) 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...
Raw data
{
"_id": null,
"home_page": null,
"name": "pimpmyplt",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.12",
"maintainer_email": null,
"keywords": null,
"author": "Daniel M\u00fcller",
"author_email": "acct.d-mueller@mailbox.org",
"download_url": "https://files.pythonhosted.org/packages/df/6d/e85babd0321ee5b46cef802059cce13af78cbf0acd28ead2f7dab590a19d/pimpmyplt-0.0.5.tar.gz",
"platform": null,
"description": "# PimpMyPLT\n\nThis package adds an pythonic way to modify your `matplotlib.rcParams` .\n\n# Installation\n\n```console\n> pip install pimpmyplt\n```\n\n# Usage\n\n```python\nimport matplotlib.pyplot as plt\nimport pimpmyplt\nfrom pimpmyplt.pimps import PimpUseTeX, PimpTightLayout, PimpSaveFigPNG\n\nmodifications = [\n PimpUseTeX(),\n PimpTightLayout(),\n PimpSaveFigPNG(dpi=400),\n]\ncomposed = pimpmyplt.compose(modifications)\nplt.rcParams.update(composed)\n\nprint(dict(composed))\n```\n\n```\n{'savefig.format': 'png', 'savefig.dpi': 400, 'figure.autolayout': True, 'text.usetex': True, 'font.family': 'serif', 'font.serif': 'cm'}\n```\n\n# Why?\n\nWell, good question as there are [easy\nways](https://matplotlib.org/stable/users/explain/customizing.html) to modify\nthe rcParams. PimpMyPLT is just a bit more pythonic. It's easy to write your own\n`Pimper` class (like `PimpUseTeX` , ...) and add functionality. But **this project\nis in a very early development stage**, so don't rely on it...\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Pimp up my matplotlib plots",
"version": "0.0.5",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "37340d31b8727e04a7695a599e80913b060f975fa22e31973c83aadb35dcab87",
"md5": "d16d65cf483a27dae5b620435b207083",
"sha256": "8a5d1204baa1300a9ffa30ee9dd4807e798e5344ed9df5ca79f10130f2e82071"
},
"downloads": -1,
"filename": "pimpmyplt-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d16d65cf483a27dae5b620435b207083",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.12",
"size": 5874,
"upload_time": "2024-08-30T11:18:42",
"upload_time_iso_8601": "2024-08-30T11:18:42.280156Z",
"url": "https://files.pythonhosted.org/packages/37/34/0d31b8727e04a7695a599e80913b060f975fa22e31973c83aadb35dcab87/pimpmyplt-0.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "df6de85babd0321ee5b46cef802059cce13af78cbf0acd28ead2f7dab590a19d",
"md5": "dbada29a73e0207971650a0e040728ac",
"sha256": "3db834fcf411968b8aaf99e28fc10760c0424e1f5e7e9f95dffd15d2d81b4d30"
},
"downloads": -1,
"filename": "pimpmyplt-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "dbada29a73e0207971650a0e040728ac",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.12",
"size": 4764,
"upload_time": "2024-08-30T11:18:43",
"upload_time_iso_8601": "2024-08-30T11:18:43.187356Z",
"url": "https://files.pythonhosted.org/packages/df/6d/e85babd0321ee5b46cef802059cce13af78cbf0acd28ead2f7dab590a19d/pimpmyplt-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-30 11:18:43",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pimpmyplt"
}