Extract matplotlib plots components
Project description
matplotlib-extract
This package is useful to create dynamic presentations where elements of a plot appear one by one. To do so, the elements are exported to seperate files.
Install with
pip install matplotlib-extract
Usage
import matplotlib.pyplot as plt
from matplotlib_extract import extract_elements
import numpy as np
x = np.linspace(0, 2*np.pi)
y1 = 2*x
y2 = 6 + 2*np.sin(x)
plt.plot(x, y1, label="line1")
plt.plot(x, y2, label="line2")
plt.legend()
extract_elements()
plt.show()
Running this script will create files for the lines, the axis and the legend.
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
Built Distribution
File details
Details for the file matplotlib_extract-0.1.2.tar.gz
.
File metadata
- Download URL: matplotlib_extract-0.1.2.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe6ac8b7315c89a76016417d7a5ac524d791199e5029a34a932a2fc24c1ffcd0 |
|
MD5 | 3bb46fb60a0b60404ea9a29e846b9979 |
|
BLAKE2b-256 | 3e92bf02648220a3397daa8ccd5d1b0e23d53f476494028d073ad598c8d813a4 |
File details
Details for the file matplotlib_extract-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: matplotlib_extract-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 839584ec677197817bd315c182bd663746e17746d9beb554b7036c8608670a7b |
|
MD5 | 33a503cdeb7796f27ea8fad1e785dbba |
|
BLAKE2b-256 | 64c2e814bab516ad99300787f9b22232505b6e198bfd1c05760472f8ca14919e |