Heatmap doesn't show the values
30 次查看(过去 30 天)
显示 更早的评论
The heatmap figures I used to plot on Matlab had the values labeled in each cell (just like the documenation says), but now the figure doesn't include the text. I'm not sure if I made changes to some settings. Does anyone know what the issue is?
For instance, I get the correct output here, when I run the following on web.
figure
heatmap(magic(5)); colormap(sky)
But this is what I get when I run this locally on my computer.
** EDIT: I run 2024a
0 个评论
采纳的回答
Steven Lord
2024-9-12
移动:Steven Lord
2024-9-12
Let's check that you're using the heatmap function included in MATLAB and not a different heatmap.m that you've written yourself or downloaded from somewhere else. What does this command show?
which -all heatmap
2 个评论
zzm oliver
2024-9-18
I met the same problem. However, which -all heatmap showed that I have not other custom heatmap function in my path.What is weird on my computer is that when I zoom in, I can see the values in the cell. However, I cannot see them when clicking the "house" icon on the top-right to restore to default view. I am using R2024b.
更多回答(1 个)
Taylor
2024-9-12
I'm not able to reproduce this in R2024a myself either. You can assign the output of heatmap to a variable to access the heatmap properties though. CellLabelColor and ColorbarVisible are some properties to start with.
另请参阅
类别
在 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!