CMAPLINE

버전 1.2.0.0 (2.5 KB) 작성자: Andrew Stevens
apply a colormap to lines in a plot
다운로드 수: 2.4K
업데이트 날짜: 2008/10/29

라이선스 보기

CMAPLINE finds all lines in an axis and specifies their colors according to a colormap. Also accepts custom colormaps in the form of a n x 3 matrix.

EXAMPLE (generates screenshot)

%generate some data
x=(0:0.1:2*pi);
m=50; exdata=bsxfun(@plus,repmat(25.*sin(x),...
[m 1]),[1:m]');

figure
subplot(121);
plot(x,exdata,'o-','linewidth',2)
cmapline('colormap','jet');
set(gca,'color','k')
title('jet colormap')

subplot(122);
plot(x,exdata,'o-','linewidth',2)
custommap=flipud(hot);
cmapline('colormap',custommap,'filled')
set(gca,'color','k')
title('reverse hot colormap, filled markers')

인용 양식

Andrew Stevens (2026). CMAPLINE (https://kr.mathworks.com/matlabcentral/fileexchange/21102-cmapline), MATLAB Central File Exchange. 검색 날짜: .

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

도움 받은 파일: varycolor

도움 준 파일: COLORMAP and COLORBAR utilities (Jul 2014)

버전 게시됨 릴리스 정보
1.2.0.0

updated help so that the example will run properly, description