Skip to main content

Plot ECGs on a paper-like support. Flexible to variable configurations.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pmecg-0.2.3.post3.tar.gz (11.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pmecg-0.2.3.post3-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

Details for the file pmecg-0.2.3.post3.tar.gz.

File metadata

  • Download URL: pmecg-0.2.3.post3.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

Hashes for pmecg-0.2.3.post3.tar.gz
Algorithm Hash digest
SHA256 d63bb8c654fcc53f9166eaba08f697efd2dd4cab3d2f4748e9618425bf5e3a1a
MD5 3dc90af29c247bc3df0e65e8edb74360
BLAKE2b-256 c91e1bfda424b582b89b74f79e32eb86758ba8d1496d8b96fdd87e52936390ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for pmecg-0.2.3.post3.tar.gz:

Publisher: release.yml on bonassifabio/pmecg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pmecg-0.2.3.post3-py3-none-any.whl.

File metadata

  • Download URL: pmecg-0.2.3.post3-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

Hashes for pmecg-0.2.3.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 f6e3ed98f47734d1c4ab71c1eab0efae87842398c46e45ab2bced9fdb8ceecf8
MD5 281b72114ef64736751345ec55ef7e50
BLAKE2b-256 e9df3ab2dec6d0b50885e30700ab1cf32e8c257aaaf98b676373f38469fa9aad

See more details on using hashes here.

Provenance

The following attestation bundles were made for pmecg-0.2.3.post3-py3-none-any.whl:

Publisher: release.yml on bonassifabio/pmecg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page