c = abyss는 현재 Figure(gcf)의 컬러맵과 행 개수가 같은 3열 배열로 abyss 컬러맵을 반환합니다. Figure가 없는 경우 행 개수는 디폴트 길이인 256과 같습니다. 배열의 각 행에는 특정 색의 빨간색, 녹색, 파란색 농도가 포함되어 있습니다. 농도는 범위 [0, 1]의 값이며 색 체계는 아래 이미지와 같습니다.
히트맵 차트는 기본적으로 sky 컬러맵의 256샘플링을 사용합니다. heatmap 함수의 Colormap 이름-값 인수를 지정하여 컬러맵과 샘플링을 변경할 수 있습니다.
예를 들어, 2×1 타일 형식 차트 레이아웃에 두 개의 히트맵 차트를 만들어 보겠습니다. 위쪽 차트는 abyss 컬러맵의 256개 색을 사용하고 아래쪽 차트는 2개의 색만 사용합니다.
tiledlayout(2,1)
% Top chart with default number of colors
nexttile
cdata = magic(10);
heatmap(cdata,Colormap=abyss)
title("256 Colors")
% Bottom chart with two colors
nexttile
heatmap(cdata,Colormap=abyss(2))
title("2 Colors")
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.