greek words in axis labels

2 ビュー (過去 30 日間)
Ioannis Vourvachakis
Ioannis Vourvachakis 2022 年 5 月 31 日
Hello, I am from Greece and I want to write the axis labels in plots in Greek language. Is it possible? Thank you

採用された回答

DGM
DGM 2022 年 5 月 31 日
編集済み: DGM 2022 年 5 月 31 日
Forgive the blind translation attempt, but wouldn't something like this work?
hungerpct = 1:100;
bph = (1:100).'.*[2 3] + [0 5] + 5*rand(100,2);
hp = plot(hungerpct,bph);
legend(hp,{'Diddy Kong','Donkey Kong'})
xlabel('Πείνα (%)')
ylabel('Ποσοστό κατανάλωσης μπανάνας (μπανάνες/ώρα)')
Unicode characters should generally be supported, so this should work. If on the other hand, you're trying to feed it something like "banánas" and have the figure automatically do the character translation to "μπανάνας", that might be a different story.
  1 件のコメント
Ioannis Vourvachakis
Ioannis Vourvachakis 2022 年 5 月 31 日
Thank you very much, I fixed this. However, you speak very good Greek!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLabels and Annotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by