KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I try to use Hebrew characters in a Matlab figure plot on my Ubuntu to no avail. I tried: text(0.6,0.5,'ירוק','fontname','times new roman','rotation',180,'fontsize',50,'color','r') and title('ירוק','fontname','times new roman','fontsize',50,'color','r') similar to what was proposed in the answer to this question . I got garbled text (see attached image ). Matlab is in version R2009b. Of course I'm set to UTF-8 encoding. >> slCharacterEncoding ans = UTF-8 I also have access to a remote computer via ssh, with version R2011a. That didn't work either. (There I had to slCharacterEncoding('UTF-8') ) The other option, using a javax.swing.JLabel component, is too difficult to use with the amount of graphing I have. I can continue producing graphs with English axes and titles, but that's a pity. Any advice? Edit : as suggested by Egon, if I can print -deps and then replace the text (from code within Matlab) in the resulting EPS file, that's pretty cool too. But I don't know how to place Unicode in EPS and I think that's stretching it... Yet another edit : I'm starting to think this is an X-server issue. Though different, I wouldn't be surprised if these issues are related: Matlab figure fonts: broken in 11.04 contd. here <a href="http://ifixdit.blogspot.com/2011/08/how-to-fix-matlab-small-figures-
Tags (comma-separated)
Save Edits
Cancel