Assign mean and max value to a heatmap color bar
조회 수: 8 (최근 30일)
이전 댓글 표시
In order to be have consistant colorbar for all plots, how can I set a min and max to the heatmap color bar? I want to customize the min and max
The line of code I am using now is:
h = heatmap(x,y,mat,...
'ColorScaling','log','MissingDataColor','1.00,1.00,1.00','GridVisible','off','MissingDataLabel','');
colormap(flipud(colormap('summer'))); set(gca,'FontSize',14,'FontName','Arial');
thank you
댓글 수: 0
채택된 답변
Mohammad Sami
2020년 4월 9일
You can specify the color limits in your heat map
%h = heatmap(__,'ColorLimits',[0 10])
댓글 수: 2
Mohammad Sami
2020년 4월 9일
편집: Mohammad Sami
2020년 4월 9일
This is arising from setting colorscaling to log. you may wish to omit that or specify the color limits in log scale as.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!