<!--
This file is part of matplotlib-tufte, Tufte-style plots for matplotlib.
https://gitlab.com/lemberger/matplotlib-tufte
SPDX-FileCopyrightText: 2022 Thomas Lemberger <https://thomaslemberger.com>
SPDX-License-Identifier: Apache-2.0
-->
# matplotlib-tufte
matplotlib-tufte is a python module
to create Tufte-like plots with matplotlib.
Inspiration is drawn from [*Edward Tufte: The Visual Display of Quantitative Information*][TufteBook].
[TufteBook]: https://www.edwardtufte.com/tufte/books_vdqi
## Requirements
- python >= 3.7
- matplotlib
## Examples
See [examples/Basic.ipynb](https://gitlab.com/lemberger/matplotlib-tufte/-/blob/main/examples/Basic.ipynb)
for some small examples of tuftelike plots.
## Usage
Create your plots with matplotlib as usual.
Then, run `tuftelike.adjust` with the x- and y-values of your plot to adjust it in-place.
```
import matplotlib.pyplot as plt
import tuftelike
xs, ys = [1, 2, 3, 4], [1, 4, 2, 3]
plt.plot(xs, ys)
tuftelike.adjust(xs, ys)
plt.savefig("example.png")
```
Tuftelike needs the x- and y-values because matplotlib does not store these internally.
The above code produces:
![an example tuftelike plot](https://gitlab.com/lemberger/matplotlib-tufte/-/raw/main/examples/simple.png).
Raw data
{
"_id": null,
"home_page": "https://gitlab.com/lemberger/matplotlib-tufte",
"name": "matplotlib-tufte",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7,<4.0",
"maintainer_email": "",
"keywords": "plotting,matplotlib",
"author": "Thomas Lemberger",
"author_email": "lembergerth@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/67/82/4f3e3192da688c86b540aef89fcee3d434d300f90b4d70d9e3e7ab3c7a2e/matplotlib_tufte-1.1.1.tar.gz",
"platform": null,
"description": "<!--\nThis file is part of matplotlib-tufte, Tufte-style plots for matplotlib.\nhttps://gitlab.com/lemberger/matplotlib-tufte\n\nSPDX-FileCopyrightText: 2022 Thomas Lemberger <https://thomaslemberger.com>\n\nSPDX-License-Identifier: Apache-2.0\n-->\n# matplotlib-tufte\n\nmatplotlib-tufte is a python module\nto create Tufte-like plots with matplotlib.\n\nInspiration is drawn from [*Edward Tufte: The Visual Display of Quantitative Information*][TufteBook].\n\n[TufteBook]: https://www.edwardtufte.com/tufte/books_vdqi\n\n## Requirements\n\n- python >= 3.7\n- matplotlib\n\n## Examples\n\nSee [examples/Basic.ipynb](https://gitlab.com/lemberger/matplotlib-tufte/-/blob/main/examples/Basic.ipynb)\nfor some small examples of tuftelike plots.\n\n## Usage\n\nCreate your plots with matplotlib as usual.\nThen, run `tuftelike.adjust` with the x- and y-values of your plot to adjust it in-place.\n\n```\nimport matplotlib.pyplot as plt\nimport tuftelike\n\nxs, ys = [1, 2, 3, 4], [1, 4, 2, 3]\nplt.plot(xs, ys)\n\ntuftelike.adjust(xs, ys)\nplt.savefig(\"example.png\")\n```\n\nTuftelike needs the x- and y-values because matplotlib does not store these internally.\nThe above code produces:\n\n![an example tuftelike plot](https://gitlab.com/lemberger/matplotlib-tufte/-/raw/main/examples/simple.png).\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Tufte-style plots for matplotlib",
"version": "1.1.1",
"project_urls": {
"Homepage": "https://gitlab.com/lemberger/matplotlib-tufte",
"Repository": "https://gitlab.com/lemberger/matplotlib-tufte"
},
"split_keywords": [
"plotting",
"matplotlib"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4b7c9eeb92d81ef963eb354a75f03bb31228f5fe5d990bda946f62ebcaec790b",
"md5": "c5257ef4d37ccf47661271685309c346",
"sha256": "5e16a9aae52659ebd72d7505285a67feca0f8e321e07184787f95dc86f1e63d6"
},
"downloads": -1,
"filename": "matplotlib_tufte-1.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c5257ef4d37ccf47661271685309c346",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7,<4.0",
"size": 17341,
"upload_time": "2023-07-31T08:46:23",
"upload_time_iso_8601": "2023-07-31T08:46:23.991180Z",
"url": "https://files.pythonhosted.org/packages/4b/7c/9eeb92d81ef963eb354a75f03bb31228f5fe5d990bda946f62ebcaec790b/matplotlib_tufte-1.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "67824f3e3192da688c86b540aef89fcee3d434d300f90b4d70d9e3e7ab3c7a2e",
"md5": "d35f92e9d5cae998d8565d95308ab145",
"sha256": "736277d14a3c3845eecca3737f884d99e752bef605325839275fd55aeacdb008"
},
"downloads": -1,
"filename": "matplotlib_tufte-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "d35f92e9d5cae998d8565d95308ab145",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7,<4.0",
"size": 8425,
"upload_time": "2023-07-31T08:46:25",
"upload_time_iso_8601": "2023-07-31T08:46:25.497389Z",
"url": "https://files.pythonhosted.org/packages/67/82/4f3e3192da688c86b540aef89fcee3d434d300f90b4d70d9e3e7ab3c7a2e/matplotlib_tufte-1.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-31 08:46:25",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "lemberger",
"gitlab_project": "matplotlib-tufte",
"lcname": "matplotlib-tufte"
}