Using Greek characters in heatmap
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Muhammad Hamza Khalid
am 30 Apr. 2019
Kommentiert: Muhammad Hamza Khalid
am 1 Mai 2019
I am using heatmap and want to display x-axis in expressions of pi instead of numbers. Is there a way to do this. I tried xticklabels but it does not work with heatmap.
h = heatmap(phipt,ept,e1);
My x-axis
h.XVariable = {'0','\pi/4','\pi/2','3\pi/4','\pi'}
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 30 Apr. 2019
h.XDisplayLabels = {'0', '\pi/4', '\pi/2', '3\pi/4', '\pi'};
2 Kommentare
Walter Roberson
am 30 Apr. 2019
Before R2019a, you would also do
h.NodeChildren(3).XAxis.TickLabelInterpreter = 'tex';
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!