[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

set(h,'color',[1,0,0 ; 0,1,0 ; 0,0,0]) or set(h,'color',mat2cell(rainbo

From: kloof
Subject: set(h,'color',[1,0,0 ; 0,1,0 ; 0,0,0]) or set(h,'color',mat2cell(rainbow(3))) ??
Date: Wed, 17 Nov 2010 06:13:53 -0800 (PST)

Dear all,

when I plot 3 lines using 1 plot command, I get 3 different colors. 

I would like to plot 200 lines and have the colors set to the matrix

'plot' doesn't accept this, but it does let me fetch the colors (as they are
automatically assigned).

h=plot(x200lines, y200lines);

dd is now a cell. 
I can change some values in this cell, but I cannot feed dd back into the

it says:

error: invalid value for color property "color"

Is there no other way than looping through line-by-line?

many thanks, Kloof

View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]