paracoord: Plot 2-dimensional arrays in Parallel coordinates
Purpose
This package is an attempt to implement the idea of parallel coordinates from Sébastien Tricaud and Philippe Saadé to general purposes.
Example
from paracoord import get_paracoord_plot
# Create 10x5 random array
values = np.random.random_sample((10, 5))
print(values)
# Plot parallel coordinates of those values
get_paracoord_plot(values)
# Set arbitrary labels for those 10 5-dimensional vectors
labels = ['aaa', 'bbb', 'aaa', 'ccc', 'bbb', 'aaa', 'aaa', 'bbb', 'aaa', 'ccc']
# Plot them in parallel coordinates with automatically chosen colors
get_paracoord_plot(values, labels=labels)
# Plot them with self defined color dict and save the resulting plot
color_dict = {'aaa': 'b', 'bbb': 'r', 'ccc': 'g'}
get_paracoord_plot(values, labels=labels, color_dict=color_dict, save_path='random_example.jpg', set_legend=True)
Options
values: 2-dimensional numpy arraylabels: optional, array containing labels for each row ofvaluescolor_dict: dict, optional, ignored iflabelsnot provided. {label -> color} dict. Iflabelsis provided but notcolor_dict, the color of each label will be automatically chosensave_path: path to the file where the resulting image will be stored. If not provided, image will not be storedset_legend: boolean, optional, ignored iflabelsnot provided. If to set a color legend for the labels or notbox: boolean. If to set a frame (x-axis, y-axis etc.) for the resulting imageylims: (ymin, ymax). If not provided, will be set to the result toget_y_min_nax(values)
Installation
pip install paracoord
Final note
Enjoy, do whatever you want with it as long as you don't hold me responsible for the consequences :) Suggestions, remarks, critics, pull requests appreciated
Metadata
Release files for paracoord 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| paracoord-0.5.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| paracoord-0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / paracoord-0.5.tar.gz
| Download URL | paracoord-0.5.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76eb3d1a352d039962f15bda5bd5dac79bd83f15059c088c5ebaf986d5be53ec
|
|
BLAKE2b-256 checksum How to use checksums |
fafe051fa55d423a9090296e793e653041f2a751ca350344906c65ebb2322c2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.0 CPython/3.6.7
|
Release files / paracoord-0.5-py3-none-any.whl
| Download URL | paracoord-0.5-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d257105429dcfb9fc026850be2424e7cd1a09ea1d1bec6e39ac236a9b167fb8
|
|
BLAKE2b-256 checksum How to use checksums |
982e27b009250810dc70c0643f5fc29a4b321f21dc525f526636deb8893fd6a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.0 CPython/3.6.7
|
Security for paracoord 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.