Skip to main content

pmecg logo

pmecg — Plot My ECG

PyPI License: GPL v3 Python

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
1x3 ECG 4x3 ECG
Interval attention Line-color attention Background attention
Interval attention ECG Line-color attention ECG Background attention ECG

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

Release files for pmecg 0.3.0

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

Source distribution (sdist)

Source distribution for pmecg 0.3.0
File Size Uploaded
pmecg-0.3.0.tar.gz 21.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pmecg 0.3.0
File Interpreter ABI Platform
pmecg-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.9 MB

Release files / pmecg-0.3.0.tar.gz

Download URL pmecg-0.3.0.tar.gz
Size 21.8 MB
Tags Source
SHA-256 checksum
How to use checksums
3636b24b790af3d8d3c9f18ae3cd22c0aa2b9f3c106b25eb7dcdc76bc09b512e
BLAKE2b-256 checksum
How to use checksums
fda661ae47b9cbd2fc51b127f4f781cee053d188e84eb036c80d14fa6fb6fa49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 21, 2026.

Transparency log

Release files / pmecg-0.3.0-py3-none-any.whl

Download URL pmecg-0.3.0-py3-none-any.whl
Size 47.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
088b2bf372d20d82abae7f935df7d7afd15c60be414ba8f768c2a89b87b2350d
BLAKE2b-256 checksum
How to use checksums
50ea2732d5db12bc9a3bfc53b3d4a0f8fa203c684d989058aac4d1a968291ea0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.3

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