matlab热度图确定色标,MATLAB:更改我的热图的颜色

该博客讲述了如何在MATLAB中创建四个具有相同颜色比例限制的热图,并强调了在区分不同热图的细微差别时,当前的蓝色调颜色方案不够明显。作者寻求将颜色改为热/冷色方案。通过设置HeatmapChart对象的Colormap属性,如`HA.Colormap = parula(64)`或`HA.Colormap = hot(64)`,可以改变颜色方案。此外,可以通过`help graph3d`获取MATLAB的所有默认色图。
摘要由CSDN通过智能技术生成

The sample script below is for creating four heat maps with the same color scale limit. I set it this way in order for me to differentiate the differences between each heat map; however, the difference is barely noticeable. The color is currently set in a general blue range (light to darker blue). What can I do to change it to maybe a hot/cold color scheme?

cd C:\Users\Aiskya\Desktop\Subjects\total

A = dlmread('avg_data.txt')

cd C:\Users\Aiskya\Desktop\Subjects\total

B = dlmread('avg_data.txt')

cd C:\Users\Aiskya\Desktop\Subjects\total

C = dlmread('avg_data.txt')

cd C:\Users\Aiskya\Desktop\Subjects\total

D = dlmread('avg_data.txt')

minValue = min([A(:); B(:); C(:); D(:)]);

maxValue = max([A(:); B(:); C(:); D(:)]);

HA.ColorLimits = [minValue maxValue]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值