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
Close
Hashes for matplotlib_extract-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 839584ec677197817bd315c182bd663746e17746d9beb554b7036c8608670a7b |
|
MD5 | 33a503cdeb7796f27ea8fad1e785dbba |
|
BLAKE2b-256 | 64c2e814bab516ad99300787f9b22232505b6e198bfd1c05760472f8ca14919e |