Threshold to set colour for different scale range in Heatmap

버전 1.0.0 (62.5 KB) 작성자: Kevin Chng
As of R2019b, There is no in-built function to set the colour of different scaled range in heatmap. Perhaps, this function can faciliate you
다운로드 수: 97
업데이트 날짜: 2020/3/30

How to use this function?
The function name is generatecolormapthreshold, first argument is the threshold and second argument is the colour

color= generatecolormapthreshold([1 10 25 30],[0 0.5 1; 0 1 0;1 0 0]);
h = heatmap(fluS,'DayName','noofweek','ColorVariable','Max_Data','Colormap',color,'ColorLimits',[1 30]);
h.FontSize=10;
h.Title='Heatmap';

means that range 1-25 is the colour for [0 1 1], 25-30 is the colour [1 0 0].

인용 양식

Kevin Chng (2024). Threshold to set colour for different scale range in Heatmap (https://github.com/KevinChngJY/heatmapthresholdmatlab), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2020a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가

Community Treasure Hunt

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

Start Hunting!

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
1.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.