How can I reverse colormap in contourfm?
7 ビュー (過去 30 日間)
古いコメントを表示
I'd like to use the reverse of jet colormap in contourfm. contourfm seems to only accept standard string values for predefined colormaps.
0 件のコメント
採用された回答
Walter Roberson
2012 年 11 月 26 日
If you want to reverse the colormap, just do it:
colormap(flipud(jet))
2 件のコメント
M.Prasanna kumar
2019 年 11 月 3 日
is there a way to assign yellow color to blue and blue to yellow in an image ??
im using imagesc command
i have attached my image
Tony Azar
2022 年 5 月 26 日
Here is an example on how to reverse colors:
C = [0 2 4 6; 8 10 12 14; 16 18 20 22];
imagesc(C), colormapeditor
once the editor is loaded, click on "Edit Size and Colorspace" then check "Reverse"
その他の回答 (1 件)
Tony Azar
2022 年 6 月 1 日
Here is how you can reverse the "jet" colormap in contourfm.
This example is from :
[N,R] = egm96geoid;
load coastlines
worldmap('world')
levels = -120:20:100;
contourfm(N,R,levels,'LineStyle','none')
geoshow(coastlat,coastlon,'Color','k')
contourcbar
colormap('jet')
colormapeditor
once the editor is loaded, click on "Edit Size and Colorspace" then check "Reverse"
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Mapping Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!