Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Parallel Coordinates - Multivariate Profile Lines

Signature

sp.build_parallel(title, axes, series, *, variant="basic", **kwargs) -> Chart

Description

sp.build_parallel() renders a parallel-coordinates chart - one vertical axis per dimension, one polyline per row. Six variants cover the classical use cases: straight lines, smooth Bezier curves, categorical coloring, single-row highlight, density-blended overlay, and gradient coloring driven by any axis. Perfect for high-dimensional EDA, profile comparison, and class separability inspection.

Parameters

ParameterUsed by variants
axesarc, deluxe, gradient, ribbon
categoriescategorical
color_axisgradient
heightarc, deluxe, ribbon
highlight_indexhighlight
palettearc, basic, categorical, deluxe, density, highlight, ribbon, smooth
series_namesall
series_valuesall
titlearc, ribbon
widtharc, categorical, deluxe, gradient, ribbon

Returns

Chart - object with .html property and .show() method.


Signature

sp.build_parallel(title, axes, series, *, variant="basic", **kwargs) -> Chart

Description

sp.build_parallel() rend un graphique parallel-coordinates - un axe vertical par dimension, une polyligne par ligne. Six variantes couvrent les cas classiques : lignes droites, courbes Bezier, couleur par categorie, mise en avant d une ligne, overlay de densite, et degrade pilote par un axe. Ideal pour l EDA haute-dimension, la comparaison de profils, et l inspection de separabilite de classes.

Parametres

ParametreTypeDefautDescription
titlestrrequisTitre du graphique
axeslist[str]requisEtiquettes des axes (gauche vers droite)
serieslist[list[float]]requisProfils - une liste interne par axe
variantstr"basic"Style de rendu (voir tableau)
series_nameslist[str]NoneNoms optionnels par ligne (hover/legende)
category_indiceslist[int]NoneId de categorie par ligne (variant categorical)
highlight_indexint-1Ligne a mettre en avant (variant highlight)
color_axisint-1Index de l axe pilotant la couleur (variant gradient)
palettelist[int]NonePalette personnalisee
widthint1000Largeur (px)
heightint500Hauteur (px)

Retour

Chart - objet avec propriete .html et methode .show().