Thanks for the idea !

Meanwhile I've improved it somewhat:

ylen = shape(Ximport)[1]

colors = ["r", "g", "b", "k", "y", "c", "m"] # And Others

counter = 0

ind = 1

for ind in range(1, ylen, 2):

Y = take(X,(0,ind), 1)

x = Y[:,0]

y = Y[:,1]

plot(x,y,colors[counter]+'-')

if counter < 5:

counter = counter + 1

else:

counter = 0

If my thoughts are right, this would return to beginning of colors if the last one is arrived.

Regards

Werner

## ···

On Wed, 27 Apr 2005 14:50:49 +0200, <andrea_gavana@...517...> wrote:

Hello Werner,

The first problem is, that all curves have the same color. Is there a

possibility to "rotate" the colors in the loop ?

while ind < 18:

Y = take(X,(0,ind), 1)

x = Y[:,0]

y = Y[:,1]

plot(x,y,'-')

ind = ind + 2You could try something like:

colors = ["r", "g", "b", "k", "y", "c", "m"] # And Others

counter = 0

while ind < 18:

Y = take(X,(0,ind), 1)

x = Y[:,0]

y = Y[:,1]

plot(x,y,colors[counter] + '-')

counter = counter + 1

ind = ind + 2Sorry, don't know for the second one...

HTH.

Andrea.

--

DI Dr. Werner Pessenhofer

CPA - Computer Process Automation

Plüddemanngasse 33

8010 Graz

Tel.: +43 (0) 676 346 70 08

FAX: +43 (0) 316 873 8772