how to set specific limits for a colorbar
조회 수: 52 (최근 30일)
이전 댓글 표시
Hi : I wanted to write a small code to generate a colorbar with limits from -180 to 180. any help please?
댓글 수: 0
답변 (1개)
Meghana Dinesh
2014년 11월 25일
Use caxis([min, max]). By default is considers the min and max values of you data plot.
subplot(2,1,1) % default case
surf(peaks(50))
colorbar
subplot(2,1,2)
surf(peaks(50))
caxis([-10, 10]) % the required limits set
colorbar
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Colorbar에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!