how to plot a figure with a title in Farsi or Arabic?
10 次查看(过去 30 天)
显示 更早的评论
Dear
How can I plot a figure with a title in Farsi. What I want to do is more complex than just simple title, but for now, plotting a simple figure with one Farsi word is satisfactory. Any help is appreciated in advance.
sample code:
figure; title('عکس','FontName','FreeFarsi','FontSize',20);
I have also tried the above code with other fonts, but it did not work either.
x=listfonts slCharacterEncoding('UTF-8'); figure; for i=1:numel(x) display(x{i}) title('عکس','Color','red','FontName','FreeFarsi','FontSize',20) pause end
0 个评论
回答(3 个)
Jos (10584)
2014-2-18
If you intend to use the figure in a publication, you can add or edit the text easily in powerpoint, word, adobe etc.
javad ebrahimi
2018-2-10
编辑:javad ebrahimi
2018-2-24
go to (figure->edit->figure Propertties) and click in ??? so click on More Preperties and change Srting value to عکس
0 个评论
Amir Talebi
2019-3-17
编辑:Amir Talebi
2019-3-17
Deat murtaza
You can use this codes for title and label. These ara just simple examples. Just type or copy these in 'Command Window'. It seems they don't work in 'Editor' window.
ylabel({'تغییر مکان جانبی نسبی',' (mm)'},'FontWeight','bold','FontSize',12,...
'FontName','Bookman');
title({'نمودار'});
You can apply any changes to your plot using the tabs on plot window especially 'insert'. After adding the hole labels and other requirments, click on 'Generate code' under 'file' tab. There would be all codes you need for your specific setting.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!