How to change the colorbar max and min number and correspond a certain color to the colormap ticks
조회 수: 9 (최근 30일)
이전 댓글 표시
My data's max and min are 0.09 and 0. I want to
- set the colorbar max and min value to 1 and -1 and
- have green and red corresponds to the max and min values.
The colorbar ticks can be an interpolation from green to red with black at the middle.
Clim does not work because the green color corresponds to the data's maximum instead of the colorbar limit's maximum.
Please help...
댓글 수: 0
채택된 답변
Umang Pandey
2024년 8월 18일
Hi Kedi,
You can refer to the following MATLAB answer that answers a similar question:
Best,
Umang
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Color and Styling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!