colorSpectrum: Create N Distinct Plot Colors

バージョン 1.2.0.0 (1.39 KB) 作成者: Kirk
Creates N distinct three-element RPB vectors for plotting
ダウンロード: 579
更新 2013/12/4

ライセンスの表示

For a consistent plot lines coloring scheme. Returns a color spectrum from red to green to blue. Avoids colors that are hard to see in matlab plots, such as yellow and cyan.

Three Easy Directions:
Obtain N curves or lines to plot: Data.
Type: C = colorSpectrum(N);
Plot: figure,hold on,for i = 1:N,plot(Data(i,:),'Color',C(i,:)),end,hold off

引用

Kirk (2026). colorSpectrum: Create N Distinct Plot Colors (https://jp.mathworks.com/matlabcentral/fileexchange/44589-colorspectrum-create-n-distinct-plot-colors), MATLAB Central File Exchange. 取得日: .

MATLAB リリースの互換性
作成: R2013a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersColor and Styling についてさらに検索
タグ タグを追加
謝辞

ヒントを与えたファイル: Maximally Distinct Color Generator

バージョン 公開済み リリース ノート
1.2.0.0

Made some corrections in comments and description.

1.1.0.0

Fixed small typo