Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
ga97cad
ga97cad am 8 Feb. 2022
Beantwortet: Poorna am 29 Sep. 2023
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

Antworten (1)

Poorna
Poorna am 29 Sep. 2023
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!

Kategorien

Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by