Using Greek characters in heatmap

1 回表示 (過去 30 日間)
Muhammad Hamza Khalid
Muhammad Hamza Khalid 2019 年 4 月 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'}

採用された回答

Walter Roberson
Walter Roberson 2019 年 4 月 30 日
h.XDisplayLabels = {'0', '\pi/4', '\pi/2', '3\pi/4', '\pi'};
  2 件のコメント
Walter Roberson
Walter Roberson 2019 年 4 月 30 日
Before R2019a, you would also do
h.NodeChildren(3).XAxis.TickLabelInterpreter = 'tex';
Muhammad Hamza Khalid
Muhammad Hamza Khalid 2019 年 5 月 1 日
Thank You!
This worked.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by