Plot ECGs on a paper-like support. Flexible to variable configurations.
Project description
pmecg — Plot My ECG
pmecg is a Python library for plotting ECG signals on a paper-like support, with flexible lead configurations, time scales, and attention map overlays.
| 1×3 layout | 4×3 layout |
|---|---|
| Interval attention | Line-color attention | Background attention |
|---|---|---|
Installation
pip install pmecg
Quick start
import numpy as np
import pandas as pd
import pmecg
fs = 500
t = np.linspace(0, 10, int(fs * 10))
df = pd.DataFrame({name: np.random.randn(len(t)) * 0.1 for name in pmecg.SUPPORTED_LEADS})
plotter = pmecg.ECGPlotter()
configuration = pmecg.template_factory("4x3", df, leads_map=None)
fig = plotter.plot(df, configuration=configuration, sampling_frequency=fs)
fig.savefig("ecg.png", dpi=300, bbox_inches="tight")
For full documentation, visit pmecg.readthedocs.io.
License
Copyright (C) 2026 Fabio Bonassi — GNU General Public License v3
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pmecg-0.2.3.post1.tar.gz.
File metadata
- Download URL: pmecg-0.2.3.post1.tar.gz
- Upload date:
- Size: 11.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8867d660e45f991b038c236616f42944160fb621f6c84cfccad686cf46253917
|
|
| MD5 |
0f3720df374cbed693e4ae704a56dea2
|
|
| BLAKE2b-256 |
b98b5ba0be1137689d5efea679bc048e0891b59a6b3b56665b210f9937af905e
|
Provenance
The following attestation bundles were made for pmecg-0.2.3.post1.tar.gz:
Publisher:
release.yml on bonassifabio/pmecg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pmecg-0.2.3.post1.tar.gz -
Subject digest:
8867d660e45f991b038c236616f42944160fb621f6c84cfccad686cf46253917 - Sigstore transparency entry: 1107730310
- Sigstore integration time:
-
Permalink:
bonassifabio/pmecg@3b1d92adc3c75fe5db85d046bd466423f04a84e1 -
Branch / Tag:
refs/tags/v0.2.3post1 - Owner: https://github.com/bonassifabio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3b1d92adc3c75fe5db85d046bd466423f04a84e1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pmecg-0.2.3.post1-py3-none-any.whl.
File metadata
- Download URL: pmecg-0.2.3.post1-py3-none-any.whl
- Upload date:
- Size: 39.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
771cb03f42e78a8f9d372985449bbd7b37207acdec6a3d2663229e2391af3340
|
|
| MD5 |
6c85580a6bf1a475e6488f09d3c6a250
|
|
| BLAKE2b-256 |
a5b45fdea6eb39928301b460c4f3c97530c10c8a53cf7ccfea80de756d07902d
|
Provenance
The following attestation bundles were made for pmecg-0.2.3.post1-py3-none-any.whl:
Publisher:
release.yml on bonassifabio/pmecg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pmecg-0.2.3.post1-py3-none-any.whl -
Subject digest:
771cb03f42e78a8f9d372985449bbd7b37207acdec6a3d2663229e2391af3340 - Sigstore transparency entry: 1107730313
- Sigstore integration time:
-
Permalink:
bonassifabio/pmecg@3b1d92adc3c75fe5db85d046bd466423f04a84e1 -
Branch / Tag:
refs/tags/v0.2.3post1 - Owner: https://github.com/bonassifabio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3b1d92adc3c75fe5db85d046bd466423f04a84e1 -
Trigger Event:
push
-
Statement type: