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.2.tar.gz (10.0 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.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypcoords-1.0.2.tar.gz
  • Upload date:
  • Size: 10.0 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.2.tar.gz
Algorithm Hash digest
SHA256 c6e1a5d33921bc71f236a0dd0708f978c6831394ea604385df99dc48c567dc2e
MD5 1ae0e63dbc31cd392c436e3a385787f1
BLAKE2b-256 09ca927babb625fce8d13ffec9376613b66c664ed4ff6bdde7acbfe2a825bf78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pypcoords-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f092db22a46be2ac9d2812c8d1b33f89c22a7ef54b675b44911ec47914207944
MD5 4299a4fa92ad8e13a3f52b9f2113ecd4
BLAKE2b-256 50b3c2ce7980f4c3c071097af340cdd5f9602905ddf6986bd36d983e27b7e979

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