Simple music-data visualization built on matplotlib.
Project description
sonoviz
Simple music-data visualization built on matplotlib. Two plain functions, one clean sage-green aesthetic.
Install
pip install sonoviz
Usage
import pandas as pd
import sonoviz as viz
df = pd.DataFrame({
"energy": [0.42, 0.55, 0.68, 0.74, 0.81],
"danceability": [0.51, 0.60, 0.66, 0.73, 0.80],
"year": [2004, 2009, 2014, 2019, 2023],
"popularity": [30, 52, 66, 80, 91],
})
# Relationship between two audio features
viz.scatter(df, x="energy", y="danceability")
# Change over time
viz.lines(df, x="year", y="popularity")
# Optional descriptive title + subtitle
viz.scatter(df, x="energy", y="danceability",
title="Higher-energy tracks tend to be more danceable",
subtitle="Each point is one track (audio features 0-1).")
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sonoviz-0.1.0.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sonoviz-0.1.0.tar.gz.
File metadata
- Download URL: sonoviz-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb0e771aa783a1e187453631563cb44cb36cf91fefe3335fa655a43d63564acf
|
|
| MD5 |
7556cd5c896943f873044b8ec353522a
|
|
| BLAKE2b-256 |
02c34846a48d5560f2dbd345b5fbd1938e3d182a2421654a99a12a1aa1b3e5a5
|
File details
Details for the file sonoviz-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sonoviz-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07d508c7bb50d6244f9cc0e7bf4e28a6d794c172a721f1ef60b9b5b5be54dbd5
|
|
| MD5 |
357ae325715d90eb58175a9e2c75a698
|
|
| BLAKE2b-256 |
75ddf2611c08e51be5d3e5d33f3191a1cb04839c35fd00b65f2959519ce0fa70
|