Reverting the caxis index
3 ビュー (過去 30 日間)
古いコメントを表示
Hi all, I have made the following image (displayed). I would like the caxi to be inverted, i.e. min = 0.4 and max = 0.1. So the axis should be something like:
0.1
0.15
0.2
0.25
0.3
0.35
0.4
Ideally the code should look as follows:
caxis('manual')
caxis([round(max(auc_weighted.AUC_weighted_new),1) round(min(auc_weighted.AUC_weighted_new),1)])
Is it possible to do so?
I thought about reverting the sign but then I would like the minus sign not to display in the image...
Thank you,
Federico
回答 (1 件)
Scott MacKenzie
2021 年 7 月 1 日
編集済み: Scott MacKenzie
2021 年 7 月 1 日
To reverse the order of colors, just change
colormap(myColorMap);
to
colormap(flipud(myColorMap));
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Orange についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!