Hello:
I have a script in which I have been using plot to plot numerous lines on
the same graph. I recently wanted to see how Line Collections work so I
tried porting it over. Everything successful except I can't seem to get
each line to be a different color. Here is the relevant section:
# Make a list of colors cycling through the rgbcmyk series.
colors = [colorConverter.to_rgba(c) for c in
('r','g','b','c','y','m','k')]
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
lines = collections.LineCollection([zip(L_range, item) for item
in a_steady])
lines.set_array(L_range)
lines.set_color(colors)
ax.add_collection(lines, autolim=True)
However every line is blue. Any ideas?