pyrolite.plot.parallel
- pyrolite.plot.parallel.parallel(df, components=None, classes=None, rescale=True, legend=False, ax=None, label_rotate=60, **kwargs)[source]
Create a parallel coordinate plot across dataframe columns, with individual lines for each row.
- Parameters
df (
pandas.DataFrame
) – Dataframe to create a plot from.components (
list
) – Subset of dataframe columns to use as indexes along the x-axis.rescale (
bool
) – Whether to rescale values to [-1, 1].legend (
bool
,False
) – Whether to include or suppress the legend.ax (
matplotlib.axes.Axes
) – Axis to plot on (optional).Todo
A multi-axis version would be more compatible with independent rescaling and zoom
Enable passing a list of colors
Rather than just a list of numbers to be converted to colors.