Same scaling of colormap in a multipanel spatial plot
조회 수: 2 (최근 30일)
이전 댓글 표시
I have uploaded a multi panel spatial plot. Notice that all the colorbars have different scale. I want to scale them in a single range. The first colorbar has a range of 1600-1900, 2nd one has 1600-2000, 3rd one is 1700-1900 so on and so forth. This is not suitable for understa ding of the graph. So my question is how to do that thing(same scaling of colorbar of a multipanel spatial plot) in matlab?
댓글 수: 0
채택된 답변
Nikhil Sapre
2021년 6월 25일
편집: Nikhil Sapre
2021년 6월 25일
Hi Swarendu,
You can find the min and maximum values to each of your data sets. Then use the values to set the ColorLimits property on each of the plot, assuming you are using some kind of a heatmap chart here.
% Assume A,B,C are your data sets
minValue = min([A(:); B(:); C(:)]);
maxValue = max([A(:); B(:); C(:)]);
% HA, HB, HC are handles to each of your plots
HA.ColorLimits = [minValue maxValue];
HB.ColorLimits = [minValue maxValue];
HC.ColorLimits = [minValue maxValue];
Thanks,
Nikhil
댓글 수: 4
Nikhil Sapre
2021년 6월 26일
Ok. This looks like a separate question in an area that I do not have expertise. Please post it as a separate question. If my answer resolved your current problem can you please accept my answer.
Thanks
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Colormaps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!