Assign mean and max value to a heatmap color bar
9 次查看(过去 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 中查找有关 Colormaps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!