How to add an aditional top x-axis description in a Heatmap figure and repeat xlabel values?
3 次查看(过去 30 天)
显示 更早的评论
Dear all, I am trying to plot to following heatmap (Image changed to comply to the desired output):
![DesiredHeatMap.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/211377/DesiredHeatMap.png)
the problems that I am facing are:
1) I cannot repeat xlabes values (have duplicate values in the xlabel)... I get the error:
Error using heatmap (line 53) Vector of x values contains duplicate values.
bat_simp = heatmap(xval,yval,B);
2) I cannot manage to find a way to add another top x-values label ('Present', 'Future A', and 'Future B')
Any Ideas on how to get around these problems?
Best wishes,
Luan
0 个评论
回答(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!