Commit 8ed3e2e
authored
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments