Add a table as x label of x-Axis in heatmap plot

3 次查看(过去 30 天)
Hi everyone!
I am trying to plot a table as the label of the x-Axis of a heatmap. I have looked in the community if there is already a solution, but I have only found this link, where the don't add lines inside the table. I want my plot to look like this:
I have created the heatmap in matlab and exported it with the exportgraphics command and then added the table in inkscape. However if one looks closely one can see, that the lines of the table I added in inkscape are sharper than the lines of the heatmap. So I thought that adding it directly in matlab would make it look more professional.
Thank you in advance and best regards
Lukas

回答(1 个)

Poorna
Poorna 2023-9-29
Hi,
I understand that you are looking to create a table as the x-label for your heatmap.
While the functionality of the x-label is limited, you can still achieve the desired plot by using a uitable within a uifigure instead. You can then customize the appearance and position of the table according to your requirements.
To learn more about using "uitable" please refer to the following documentation:and plotting them within a figure, please refer to the following links: https://www.mathworks.com/help/matlab/ref/uitable.html
To know more about displaying a table alongside a plot please refer to the following answer: https://www.mathworks.com/matlabcentral/answers/1591184-how-can-i-display-a-table-alongside-a-plot-in-the-same-figure
Hope this Helps!

类别

Help CenterFile Exchange 中查找有关 Data Distribution Plots 的更多信息

产品


版本

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by