I'd like to cycle through three colors for six curves that I am plotting. The first three curves will differ from the second three curves by thickness. However I want curve 1 and curve 4 to have the same color, curve 2 and curve 5, etc. How do I cycle through three colors? Maybe I can just put something before the first line in the else statement that resets the color sequence.
x = []
y1a = []
y1b = []
y1c = []
y2a = []
y2b = []
y2c = []
y =[y1a,y1b,y1c,y2a,y2b,y2c]
ynames = {0:'A',1:'B',2:'C',3:'2A',4:'2B',5:'2C'}
for n in range(0,6,1):
if len(ynames[n])==1:
plot(x, y[n], 'x-', label=ynames[n], linewidth='4')
elif len(ynames[n])==2:
plot(x, y[n], 'x-', label=ynames[n], linewidth='8')
xlabel("Ex")
ylabel("Why")