Using Greek characters in heatmap
조회 수: 2 (최근 30일)
이전 댓글 표시
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
채택된 답변
Walter Roberson
2019년 4월 30일
h.XDisplayLabels = {'0', '\pi/4', '\pi/2', '3\pi/4', '\pi'};
댓글 수: 2
Walter Roberson
2019년 4월 30일
Before R2019a, you would also do
h.NodeChildren(3).XAxis.TickLabelInterpreter = 'tex';
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!