![]() Unfortunately, apart from copying lines of code, i cannot do much with the blog you mention, as i don't understand what is written in "monospace" family is one that enables me to display accents of french words, for the xticks. ![]() It is worth noting that these chinese characters print well on the console if i add the line: I still display empty boxes instead of chinese characters. I have downloaded simhei fonts and added it in my directory /usr/shared/fonts/truetype but even by using Matplotlib-users mailing you for your help, Spend less time writing and rewriting code and more time creating greatĮxperiences on the web. Standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & 元. Xtics=\Īxim\.imshow\(matrix, cmap=cm\.jet, interpolation='nearest',įontsize=15,rotation=25,ha='right',family='monospace')Īxim.set_yticklabels(ytics,fontsize=15,family='fantasy')#,fontname='ARīeautiful is writing same markup. Import matplotlib.pyplot as plt matrix=\\] for tkey in \\] In comment you can see various failed attempts: Here is an example of plot that displays empty boxes instead of chinese characters. How can one display mandarin labels in a plot, as yticks_labels for example? It looks to me that there is no font in matplotlib that can display chinese characters? I can display accentuation from ‘utf8’ but i could not find a font family that would display chinese characters.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |