Skip to main content

pyqtspecgram

Python spectogram plotted using pyqtgraph

Pyqtplot allows significantly faster navigation and zooming for larger scale waterfalls compared to pyplots specgram method.

See more on https://github.com/epeters13/pyqtspecgram

Author: Edwin G.W. Peters

Requirements

  • scipy
  • pyqtgraph

Installation

pip install pyqtspecgram

or

python setup.py install

Usage

Check "test_pyqtspecgram" for an example

Plot a waterfall

from pyqtspecgram import pyqtspecgram
import numpy as np

Fs = 1e6
t = 5  # sec
N = int(t * Fs)
sigma_noise_2 = 0.1
NFFT = 4096

a = np.exp(1j * 2 * np.pi * 150e3 / Fs * np.arange(N))
a += np.exp(-1j * 2 * np.pi * 298e3 / Fs * np.arange(N))
a += np.sqrt(sigma_noise_2) / 2 * (np.random.randn(N) + 1j * np.random.randn(N))

Sxx, f_a, t_a, fig = pyqtspecgram(a, NFFT, Fs, Fc=0)

Todo

  • Prevent garbage collection when returning from main thread to allow figure to remain open in the background in an interactive ipython console
  • Export coordinates in graph to console with double or right click
  • Allow dynamic time-averaged spectrogramming for very large data sets

Metadata

Release files for pyqtspecgram 0.1.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 pyqtspecgram 0.1.0
File Size Uploaded Provenance Actions
pyqtspecgram-0.1.0.tar.gz 16.2 kB Without provenance Details for pyqtspecgram-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 32.6 kB

Release files / pyqtspecgram-0.1.0.tar.gz

Download URL pyqtspecgram-0.1.0.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
268a66441e37617e9d7cf3e94b1bf9dd156b3061f127014ccc001c2d6acf1ca4
BLAKE2b-256 checksum
How to use checksums
66fb74a1208da4d0dade79f8f72c5858145f9bfa7c82d808a3ca0d2b2efd073b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / pyqtspecgram-0.1.0-py3-none-any.whl

Download URL pyqtspecgram-0.1.0-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bf98a4e6d7fa873451e55b1fdf535999d40231595772d67471db4bf99e8464d
BLAKE2b-256 checksum
How to use checksums
f9a9e473d41b4e10a63efb7da6ec098bc3bd449075c66c3447f1a33c6b25f6e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Security for pyqtspecgram 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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