How to add x and y variables to individual values after creating a heatmap.
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jose Mendoza Garcia
am 28 Okt. 2022
Beantwortet: Jim Riggs
am 28 Okt. 2022
i want to add the names of values corresponding to the x values on the heat map. Where -0.5 is want ti put a label that says differentiation score, for -0.4 i want to add another name corresponding and so on for all the others. Please help! I know that you can change tthe title of the y and x axis but i dont know a way in which i can give those numbers i mentioned their corresponding name.
0 Kommentare
Akzeptierte Antwort
Jim Riggs
am 28 Okt. 2022
You can modify the axis properties after creating the plot:
ax = gca; % get the curent axis handle
ax.XTickLabel = {'Jan','Feb','Mar','Apr'} % specify labels for the x-axis tickmarks
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!