MATLAB Answers

Jana
0

changing colors in line plot of a matrix

Asked by Jana
on 18 Jan 2014
Latest activity Answered by Mischa Kim
on 18 Jan 2014
Hi,
I keep failing in changing the colormap (colors) in plot of a matrix. How do I do it? I am sure it's simple, something like to change the colormap. I just can't find how.
I have a matrix, let's say Y, a matrix of 8x8 (whatever). I plot it as plot(Y) How do I influence the color selection - by my own or a default color library (colormap)?
Thanks,
Jana

  0 Comments

Sign in to comment.

1 Answer

Mischa Kim 님의 답변 18 Jan 2014

Hello, you need to change the ColorOrder that MATLAB chooses per default to generate plots. See http://www.mathworks.com/matlabcentral/answers/19815#answer_26172 for details.

  0 Comments

Sign in to comment.