Modify existing colormap ranges
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello all. I'm using the colormap "jet" to show magnitude of a contour plot. Is there a way to manually adjust the range of the colormap?
More specifically, here is an image of the colormap:
Now instead of going from dark blue to dark red, I want to be able to go from dark blue to orange, or from turquose to dark red. Basically, is there an easy way to have control over this? Or if not, is there a simple method to re-create a colormap from scratch?
Thank you for your help.
댓글 수: 0
채택된 답변
Walter Roberson
2020년 4월 29일
temp = jet(255);
stop_at_orange = temp(1:170,:);
colormap(stop_at_orange)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Colormaps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!