Skip to main content

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.

Metadata

Release files for matplotlib-extract 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for matplotlib-extract 0.1.2
File Size Uploaded
matplotlib_extract-0.1.2.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for matplotlib-extract 0.1.2
File Interpreter ABI Platform
matplotlib_extract-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.1 kB

Release files / matplotlib_extract-0.1.2.tar.gz

Download URL matplotlib_extract-0.1.2.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fe6ac8b7315c89a76016417d7a5ac524d791199e5029a34a932a2fc24c1ffcd0
BLAKE2b-256 checksum
How to use checksums
3e92bf02648220a3397daa8ccd5d1b0e23d53f476494028d073ad598c8d813a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / matplotlib_extract-0.1.2-py3-none-any.whl

Download URL matplotlib_extract-0.1.2-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
839584ec677197817bd315c182bd663746e17746d9beb554b7036c8608670a7b
BLAKE2b-256 checksum
How to use checksums
64c2e814bab516ad99300787f9b22232505b6e198bfd1c05760472f8ca14919e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page