Custom Colors for Plots

バージョン 1.0.0.0 (1.88 KB) 作成者: Andres
This function provides a selection of colors easy to differentiate for plotting graphics.
ダウンロード: 598
更新 2012/5/3

ライセンスの表示

In plot graphs, often it's needed to use a several colors that can be easily differentiated on a first look on the graphic. With this function you can call easily (by name or by code) a selection of 15 colors.
It's very simple and there are more elegant ways to do it, but I think it's a very functional solution.

Examples:
for ccc=1:15
plot(ccc*ones(1,10),'Linewidth',4,'Color', CustomColors(ccc))
end

plot(ones(1,10),'Linewidth',4,'Color', CustomColors('Coral'))
plot(ones(1,10),'Linewidth',4,'Color', CustomColors('DeepSkyBlue4'))

引用

Andres (2024). Custom Colors for Plots (https://www.mathworks.com/matlabcentral/fileexchange/36514-custom-colors-for-plots), MATLAB Central File Exchange. に取得済み.

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

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

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0