Skip to content

Commit 8ed3e2e

Browse files
spec: add spectrogram-basic specification (#2931)
## New Specification: `spectrogram-basic` Related to #2927 --- ### specification.md # spectrogram-basic: Spectrogram Time-Frequency Heatmap ## Description A spectrogram displaying time-frequency representation of a signal as a heatmap. It shows how the frequency content of a signal changes over time, with color intensity representing the amplitude or power at each time-frequency point. Essential for analyzing non-stationary signals where frequency characteristics vary, revealing patterns invisible in time-domain or frequency-domain views alone. ## Applications - Audio analysis including speech recognition and music processing - Vibration monitoring for machinery health and fault detection - Seismic data analysis for earthquake and geological studies - Biomedical signal processing such as EEG and ECG analysis ## Data - `signal` (numeric array) - time-domain signal values - `sample_rate` (numeric) - sampling frequency in Hz - Size: 1000-50000 samples for clear visualization - Example: chirp signal with increasing frequency, audio waveform, or vibration data ## Notes - Use a perceptually uniform colormap (viridis, inferno) for accurate magnitude representation - Include colorbar with power/amplitude units (dB scale often preferred) - Label axes clearly: time (seconds) on x-axis, frequency (Hz) on y-axis - Consider log scale for frequency axis when spanning multiple octaves - Window size and overlap affect time-frequency resolution trade-off --- **Next:** Add `approved` label to the issue to merge this PR. --- :robot: *[spec-create workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20612567247)* Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 4f2eca8 commit 8ed3e2e

2 files changed

Lines changed: 57 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# spectrogram-basic: Spectrogram Time-Frequency Heatmap
2+
3+
## Description
4+
5+
A spectrogram displaying time-frequency representation of a signal as a heatmap. It shows how the frequency content of a signal changes over time, with color intensity representing the amplitude or power at each time-frequency point. Essential for analyzing non-stationary signals where frequency characteristics vary, revealing patterns invisible in time-domain or frequency-domain views alone.
6+
7+
## Applications
8+
9+
- Audio analysis including speech recognition and music processing
10+
- Vibration monitoring for machinery health and fault detection
11+
- Seismic data analysis for earthquake and geological studies
12+
- Biomedical signal processing such as EEG and ECG analysis
13+
14+
## Data
15+
16+
- `signal` (numeric array) - time-domain signal values
17+
- `sample_rate` (numeric) - sampling frequency in Hz
18+
- Size: 1000-50000 samples for clear visualization
19+
- Example: chirp signal with increasing frequency, audio waveform, or vibration data
20+
21+
## Notes
22+
23+
- Use a perceptually uniform colormap (viridis, inferno) for accurate magnitude representation
24+
- Include colorbar with power/amplitude units (dB scale often preferred)
25+
- Label axes clearly: time (seconds) on x-axis, frequency (Hz) on y-axis
26+
- Consider log scale for frequency axis when spanning multiple octaves
27+
- Window size and overlap affect time-frequency resolution trade-off
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Specification-level metadata for spectrogram-basic
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: spectrogram-basic
5+
title: Spectrogram Time-Frequency Heatmap
6+
7+
# Specification tracking
8+
created: 2025-12-31T05:13:04Z
9+
updated: 2025-12-31T05:13:04Z
10+
issue: 2927
11+
suggested: MarkusNeusinger
12+
13+
# Classification tags (applies to all library implementations)
14+
# See docs/concepts/tagging-system.md for detailed guidelines
15+
tags:
16+
plot_type:
17+
- spectrogram
18+
- heatmap
19+
data_type:
20+
- timeseries
21+
- numeric
22+
- continuous
23+
domain:
24+
- general
25+
- science
26+
- engineering
27+
features:
28+
- basic
29+
- time-frequency
30+
- signal-processing

0 commit comments

Comments
 (0)