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 CenterMATLAB Answers에서 Annotations에 대해 자세히 알아보기
태그 태그 추가
도움

도움 준 파일: 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