Use of discrete colors in contourf and pcolor with colorbar

버전 1.1.0.0 (2.81 KB) 작성자: Makarand
To set specific colors to the filled contours and pcolor plots and then to set the correct colorbar.
다운로드 수: 1.4K
업데이트 날짜: 2010/10/18

라이선스 보기

There are three three files
Recolor_pcolor.m , Recolor_contourf.m and colorbar_levels.m
The Recolor_pcolor/Recolor_contourf functions re-assign the specific colors to specific levels. The required colormap must be assigned to the pcolor/contourf plots before calling this function. The number of colors in the colormap must be one plus the length of levels.
While making the contourf plot make it on [min(data) Levels] levels. In addition to that keep max(Levels) <max(data)
After plotting pcolor set the caxis on bounds [min(data) max(Levels)]
All comments are welcome.
Thanks
Mak

인용 양식

Makarand (2025). Use of discrete colors in contourf and pcolor with colorbar (https://kr.mathworks.com/matlabcentral/fileexchange/28073-use-of-discrete-colors-in-contourf-and-pcolor-with-colorbar), MATLAB Central File Exchange. 검색 날짜: .

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

Community Treasure Hunt

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

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

made little flexible two of the programs

1.0.0.0