Hi,
I have a question about the color options in matplotlib.
First, some calculations are done, which results in a nested list, which contains for each variable (A,B,C etc.) the values at particular time points.
I can plot this like, which gives a nice figure, where every variable has it's own color
i=0
while i<stuff_to_plot:
plot(time,stuff_to_plot)
i+=1
For some reason, I want to iterate this process, so I obtain for each variable multiple results (which differ slightly) and plot all these variables, which brings me to my problem:
This results in a plot with multiple lines for each variable, but each line of a particular variable has a different color.
I want a plot, where each different variable, so every list in stuff_to_plot, has a different color, but the iterations of each variable must have identical colors.
My ugly solution is: make a list of possible colors ( and use this, so stuff_to_plot[0] becomes red and stuff_to_plot[1] becomes green etc, but I do not know all the colors and I think that it is possible to do this much more elegant.