Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypcoords-1.0.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypcoords-1.0.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file pypcoords-1.0.0.tar.gz.

File metadata

  • Download URL: pypcoords-1.0.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pypcoords-1.0.0.tar.gz
Algorithm Hash digest
SHA256 80d70ea14b8f085e04fc4c34c790849b275fb91cee31a6c803a76dee448d7a3c
MD5 3872ebff574a18dfd8b1ec1736334807
BLAKE2b-256 69bd7bf72c15c800d793941af8d990f81332ae6cc947b23830f4a385fea393b7

See more details on using hashes here.

File details

Details for the file pypcoords-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pypcoords-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pypcoords-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13d12a4ad140da2aa0fdae326fc6da80dccb23f48a06b05fda0dcfa274b6cdc3
MD5 307bbb613bf103a9729576d070458ad9
BLAKE2b-256 e1f7af7ecfc4051f92de65d637020c910e08673b7178d73f6a9de700384dbde9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page