Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
ga97cad
ga97cad el 8 de Feb. de 2022
Respondida: Poorna el 29 de Sept. de 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

Respuestas (1)

Poorna
Poorna el 29 de Sept. de 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!

Categorías

Más información sobre Data Distribution Plots en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by