parcoords package reference#

parcoords.plot_parcoords(values, labels=None, title=None, color_field=None, color='grey', scale=None, figsize=None, cmap=<matplotlib.colors.ListedColormap object>, y_limits=None, axs=None)[source]#

Plotting function for parallel coordinate plots.

Parameters:
  • values (Union[Sequence, np.ndarray]) – 2-dimensional sequence or numpy-array containing row-vectors of the data to display. (required)

  • labels (Union[Sequence[str], np.ndarray[str]]) – Sequence containing the column labels. (optional)

  • title (str) – Title of the figure. (optional)

  • color_field (Union[str, int]) – Either the label of the column (labels must be provided) or the column index used as basis for the coloring. If not provided, the color attribute will be used. (optional)

  • color – Color of the edges when color_field attribute is not provided. (default: grey)

  • scale (Union[Sequence[Tuple[Union[str, int], Union[str, ScaleBase]]], Sequence[Union[str, ScaleBase]], str]) – Sequence of scale types. Must be in one of the forms: [({field label/index}, {“linear”, “log”, …}), …] or [{“linear”, “log”, …}, …] or {“linear”, “log”, …}. (optional, default: linear)

  • figsize (Tuple[int, int]) – Size of the figure. (optional)

  • cmap – The colormap for the edge-colors (to be used together with color_field). (default: viridis)

  • y_limits (Union[Sequence, np.ndarray]) – The min- & max-limits for the axes. Must be in the form of: [(min, max), …] for all axes. (optional)

  • axs (np.ndarray[plt.Axes]) – An existing axes array, to be used when adding more datapoints. (optional)

Returns:

The figure object and the axes (as ndarray).

Return type:

Tuple[plt.Figure, np.ndarray[plt.Axes]]