How to make map with unequal colorbar

3 ビュー (過去 30 日間)
PS
PS 2024 年 5 月 28 日
移動済み: Dyuman Joshi 2024 年 6 月 5 日
Hello everyone,
I know this question has been asked numeroud times, but still I am stuck at this.
I want to make a create a map in which colorbar is cutomized. I am pasting a example
Any help or tips will be great.
Thanks
  3 件のコメント
Matt J
Matt J 2024 年 5 月 28 日
編集済み: Matt J 2024 年 5 月 28 日
What exactly is the customization in the example? Is it that the colorbar consists of a discrete selection of colors, or is it that it has tapered ends?
DGM
DGM 2024 年 5 月 28 日
編集済み: DGM 2024 年 5 月 29 日
It's not clear whether the triangle bits are included in the colortable or not. It doesn't make sense that they would be, but either way, it doesn't make sense that one is white, and the other replicates the prior color in the table.
For all colors shown:
CT = [255 255 255;
220 220 220;
175 238 238;
0 255 255;
144 238 144;
255 255 0;
255 165 0;
255 0 0;
139 0 0;
139 0 0]/255;
Excluding the ends:
CT = [220 220 220;
175 238 238;
0 255 255;
144 238 144;
255 255 0;
255 165 0;
255 0 0;
139 0 0]/255;
Make of that what you will.

サインインしてコメントする。

採用された回答

PS
PS 2024 年 5 月 29 日
移動済み: Dyuman Joshi 2024 年 6 月 5 日
@Matt J, by customization I meant discreet colorbar using ticks as shown in example, and caliberating my data accoridng to these tick labels. I am not looking for the tapered ends, the example I have posted is generated in Python. Thanks so much for asking. I have found the solution though.
As suggested by @Dyuman Joshi, I digged a bit harder on the forum, and solution was there. I am posting the link of the solution here;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeColorbar についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by