How to use an absolute scale with colormaps
9 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone,
I am using image to plot a matrix of some heat data, the thing is that i want a specific color mapped in a specific value, for example if i have a maximum temperature of 45 then that will be a deep red color, and the lowest a deep blue, but if in another image i have a maximum temperature of 6 then that again will be represented with a deep red color. I dont want that, i need the scale of the colormap to remain the same no matter the data that i am plotting, is there a way to do that?
Thanks in advance.
0 件のコメント
採用された回答
Jurgen
2013 年 2 月 9 日
Yes, just adjust the CLim property of the axes to the desired range. e.g. caxis([0 45]) will map the colors to 0-45 range.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Blue についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!