|
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 kolor=rainbow(200). 'plot' doesn't accept this, but it does let me fetch the colors (as they are automatically assigned). h=plot(x200lines, y200lines); dd=get(h,'color'); dd is now a cell. I can change some values in this cell, but I cannot feed dd back into the plot set(h,'color',dd) 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: http://octave.1599824.n4.nabble.com/set-h-color-1-0-0-0-1-0-0-0-0-or-set-h-color-mat2cell-rainbow-3-tp3046817p3046817.html Sent from the Octave - General mailing list archive at Nabble.com.
[Prev in Thread] | Current Thread | [Next in Thread] |