Skip to main content

Parallel Coordinates plotting

Project description

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 array
  • labels: optional, array containing labels for each row of values
  • color_dict: dict, optional, ignored if labels not provided. {label -> color} dict. If labels is provided but not color_dict, the color of each label will be automatically chosen
  • save_path: path to the file where the resulting image will be stored. If not provided, image will not be stored
  • set_legend: boolean, optional, ignored if labelsnot provided. If to set a color legend for the labels or not
  • box: boolean. If to set a frame (x-axis, y-axis etc.) for the resulting image
  • ylims: (ymin, ymax). If not provided, will be set to the result to get_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

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

paracoord-0.5.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

paracoord-0.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file paracoord-0.5.tar.gz.

File metadata

  • Download URL: paracoord-0.5.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for paracoord-0.5.tar.gz
Algorithm Hash digest
SHA256 76eb3d1a352d039962f15bda5bd5dac79bd83f15059c088c5ebaf986d5be53ec
MD5 7543301be7a3e7dcf317a1408470914b
BLAKE2b-256 fafe051fa55d423a9090296e793e653041f2a751ca350344906c65ebb2322c2f

See more details on using hashes here.

File details

Details for the file paracoord-0.5-py3-none-any.whl.

File metadata

  • Download URL: paracoord-0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for paracoord-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9d257105429dcfb9fc026850be2424e7cd1a09ea1d1bec6e39ac236a9b167fb8
MD5 ab64c827e2ded92e4e57069db1f07604
BLAKE2b-256 982e27b009250810dc70c0643f5fc29a4b321f21dc525f526636deb8893fd6a6

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