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

조회 수: 3 (최근 30일)
ga97cad
ga97cad 2022년 2월 8일
답변: Poorna 2023년 9월 29일
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