フィルターのクリア

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

2 ビュー (過去 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 Center および File ExchangeData Distribution Plots についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by