pandas.plotting.
andrews_curves
Generate a matplotlib plot of Andrews curves, for visualising clusters of multivariate data.
Andrews curves have the functional form:
x_4 sin(2t) + x_5 cos(2t) + …
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.
Data to be plotted, preferably normalized to (0.0, 1.0).
Colors to use for the different classes.
Colormap to select colors from. If string, load colormap with that name from matplotlib.
Options to pass to matplotlib plotting method.
Examples
>>> df = pd.read_csv( ... 'https://raw.github.com/pandas-dev/' ... 'pandas/master/pandas/tests/io/data/csv/iris.csv' ... ) >>> pd.plotting.andrews_curves(df, 'Name')