Flexible parallel coordinates plot with support for NumPy, pandas, and polars.
Project description
pypcoords
Simple and flexible parallel coordinates plot implementation built on top of matplotlib.
Supports multiple data formats out of the box, including NumPy, pandas, and polars.
✨ Features
-
📊 Parallel coordinates visualization
-
🔌 Works with:
- dict / mappings
- NumPy arrays
- pandas DataFrame
- polars DataFrame
-
🎨 Flexible color system (colormap or custom colors)
-
🧠 Automatic handling of:
- numeric data
- categorical data
-
🧵 Smooth curves using cubic Bézier interpolation
-
🎯 Row highlighting support
📦 Installation
pip install pypcoords
🚀 Quick Example
from pypcoords import parallel_plot
data = {
"A": [1, 2, 3],
"B": [4, 5, 6],
"C": [7, 8, 9],
}
parallel_plot(data)
🎨 With colors
parallel_plot(
data,
colormap="viridis",
colormap_column="C"
)
🔍 Highlight specific rows
parallel_plot(
data,
highlight_rows={
1: {"edgecolor": "red", "linewidth": 2.5}
}
)
📚 Supported input formats
- Mapping of column names to arrays
- pandas DataFrame
- polars DataFrame
- 2D array-like (NumPy, lists, etc.)
📄 License
MIT
🤝 Contributing
Contributions are welcome!
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
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 pypcoords-1.0.1.tar.gz.
File metadata
- Download URL: pypcoords-1.0.1.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
998289bcfcbcb4ef1dc861cfc4aff534a43bc6597dd015f92f7fd70a9d84ec29
|
|
| MD5 |
3700b43008ed7145145c0564f578b20b
|
|
| BLAKE2b-256 |
3128f020ab4f252bf0dcd76c07fcab20c54c5219252f6b3ac4e44856f3d1d978
|
File details
Details for the file pypcoords-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pypcoords-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6952af514e24191182843ecc5ac03a0a061c215c5c2fc5939627ec488332ea1
|
|
| MD5 |
6c9a2a90700e746fa1a2a9fa2327cf10
|
|
| BLAKE2b-256 |
21f956e001fbe5b1955e3f7c5111d272d8854a97447b3069f76120aee099cf74
|