colorSpectrum: Create N Distinct Plot Colors

버전 1.2.0.0 (1.39 KB) 작성자: Kirk
Creates N distinct three-element RPB vectors for plotting
다운로드 수: 573
업데이트 날짜: 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 (2024). colorSpectrum: Create N Distinct Plot Colors (https://www.mathworks.com/matlabcentral/fileexchange/44589-colorspectrum-create-n-distinct-plot-colors), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2013a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Colormaps에 대해 자세히 알아보기
도움

도움 준 파일: Maximally Distinct Color Generator

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.0

Made some corrections in comments and description.

1.1.0.0

Fixed small typo