chemometrics.plot_colored_series¶
- chemometrics.plot_colored_series(Y, x=None, reference=None)¶
Plot lines colored by position or reference
Generate a line plot with x on x-axis and one or multiple dataseries Y. The lines are either colored by position in the matrix Y or by value in the reference matrix.
- Parameters
Y ((n, m) ndarray) – Matrix containing data series to plot. The function expects. n datapoints in m series.
x ({None, (n,) ndarray}) – Location on x-axis
reference ({None (default), (m,) ndarray}) – Reference values to color data series by. If None, the series are colored by the position in the second dimension of matrix Y.
- Returns
lines – A list of line objects generated by plotting the spectra.
- Return type
list