Jesper Larsen wrote:
> Hi matplotlib-users,
> 
> I have an application which I am currently translating to other
> languages including Chinese. I was wondering what recommendations you
> have for internationalization with regards to matplotlib. Using the
> default font it seems like Chinese characters are not showing up on
> the plots. I tried running this file:
> 
> # -*- coding: utf-8 -*-
> from matplotlib import pyplot as p
> p.plot([1,2,4])
> wind = u'\u98ce'
> p.title(wind)
> p.savefig('test.png')

Try include the font in your matplotlibrc file. For example, I was able
to show the "wind" "风" by adding 'AR PL SungtiL GB' (no quotes) to the
font.sans-serif property line.

Regards,
ST
--

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to