changing colors in line plot of a matrix

4 ビュー (過去 30 日間)
Jana
Jana 2014 年 1 月 18 日
回答済み: Mischa Kim 2014 年 1 月 18 日
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

回答 (1 件)

Mischa Kim
Mischa Kim 2014 年 1 月 18 日
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.

カテゴリ

Help Center および File ExchangeColormaps についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by