I want to plot a nested list using ListLinePlot
and to set different colors according to the length of the nested lists, e.g.:
data={{0.5, 0.25, 0.75, 0.75, 1.25, 1., 1.5, 1., 1.5, 0.5, 1., 1., 1.5,
0.5, 1., 1., 1., 1.25, 1.25, 1., 1., 1.25, 1.25, 1.75, 1.75, 1.25,
1.25, 1., 1., 0.5, 0.5}, {0.25, 0.75, 1., 1., 0.5, 1., 0.5, 0.5,
0.75, 0.5, 0.75, 1.25, 0.75, 0.5, 0.}, {0.5, 0.75, 1.25, 0.5, 1.,
0.5, 1., 1., 1., 1., 1., 1.25, 1.25, 0.5, 0.5}, {0.75, 0.5, 0.5,
0.5, 0.5, 0.75, 0.}, {0.5, 0.25, 0.75, 0.5, 1., 0., 0.5, 0.5, 0.5,
0.75, 0.75, 1., 1., 0.5, 0.5}, {0.25, 0.5, 0., 0., 0.25, 0.5,
0.}, {0.5, 0., 0.5, 0.5, 0.5, 0.5, 0.5}};
ListLinePlot[Flatten[data], PlotRange -> All]
so that each each of the nested lists has its own color:
color1range = Length[data[[1]]];
color2range = Length[data[[2]]];
Any ideas?