hvplot.plotting.andrews_curves#

hvplot.plotting.andrews_curves(data, class_column, samples=200, alpha=0.5, width=600, height=300, cmap=None, colormap=None, **kwds)[source]#

Generate a plot of Andrews curves, for visualising clusters of multivariate data.

Andrews curves have the functional form:

\[f(t) = \frac{x_1}{\sqrt{2}} + x_2 \sin(t) + x_3 \cos(t) + x_4 \sin(2t) + x_5 \cos(2t) + \cdots\]

Where \(x\) coefficients correspond to the values of each dimension and \(t\) is linearly spaced between \(-\pi\) and \(+\pi\). Each row of frame then corresponds to a single curve.

Parameters:
frameDataFrame

Data to be plotted, preferably normalized to (0.0, 1.0)

class_columnstr

Column name containing class names

samplesint, optional

Number of samples to draw

alphafloat, optional

The transparency of the lines

cmap/colormapstr or colormap object

Colormap to use for groups

Returns:
objHoloViews object

The HoloViews representation of the plot.

See also

pandas.plotting.parallel_coordinates

matplotlib version of this routine

Examples#

TBD

This web page was generated from a Jupyter notebook and not all interactivity will work on this website.