How to make color axis ticklabes with two end limits ([cmin cmax]) only?
55 ビュー (過去 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 日 9:08
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 日 11:58
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 で Colormaps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!