How to make color axis ticklabes with two end limits ([cmin cmax]) only?
조회 수: 4 (최근 30일)
이전 댓글 표시
Suppose, I have subplots of 4 times 3 or higher and I cant change clim of each plot using property inspector. I tried
clim([cmin cmax])
but that shows a full range instead of two ticklabels (with auto ticks) only. is there a way to fix two end limits with ticklabes on the color axis. Thanks.
Edited:syntax for ticklabes (not ticks) as cmin and cmax .
댓글 수: 2
Mathieu NOE
2025년 2월 3일
I am not sure to understand how the result should look like
you want only two colors to be displayed ?
답변 (1개)
Star Strider
2025년 2월 3일
One problem may be that your clim call (at least as posted) needs parentheses.
This call to clim:
cl = clim;
should return the limits as a 2-element vector.
If you want to set them, use:
clim([-5 5])
or some such, depending on what you want.
.
댓글 수: 11
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!