フィルターのクリア

One scaling colomap for various figures

3 ビュー (過去 30 日間)
Michael Jordan
Michael Jordan 2017 年 12 月 28 日
編集済み: Harish Ramachandran 2018 年 1 月 2 日
I created several heatmaps from several matrices with: figure Heatmap1 =heatmap (A,'Colormap',jet); figure Heatmap2 =heatmap (B,'Colormap',jet);
They should use the same Colormap but with different scaling. e.g.:highest: dark red; middle (0): white; lowest: dark blue
But 0 has to be exactly in the middle and always should be white. Therefore it should for example be possible that in the first figure -3 is marked as dark blue, zero is white, and +8 is marked as dark red. And in the next figure -1 is dark blue, zero is white, and +3 is dark red. Thank you.

回答 (1 件)

Harish Ramachandran
Harish Ramachandran 2018 年 1 月 2 日
編集済み: Harish Ramachandran 2018 年 1 月 2 日
Hello Michael.
1. With respect to setting limits on the colormap scale, you should check out the documentation on caxis. The property parameter enables you to set the lower and upper limit of the color map.
2. The colormap you have chosen is 'Jet'. From the documentation on colormap 'Jet' does not have a white component. You can use any of the other templates given which might suit your need.
Hope this helps.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by