Hello Mike, dear list,
I am now able to generate a ps (and png) file with CJK characters (eps
does NOT work).
But my paths was rather surprising:
* I put SimHei back at first position in matplotlibrc:
font.sans-serif: SimHei, ~
* the following I took out of my dea.py:
#import m
David wrote:
> Dear Mike, dear list,
>
> thanks for the continued help!
> Here are my 'news':
>
> On 18/03/10 22:22, Michael Droettboom wrote:
>>> import matplotlib
>>> matplotlib.use('GtkCairo')
>>>
>>> Incidentally, if I uncomment those two lines, then the (Western) font
>>> of my graph actually
David wrote:
> Dear Michael,
>
> On 17/03/10 20:34, Michael Droettboom wrote:
>
>>> I have tried
>>>
>>> import matplotlib
>>> matplotlib.use('GtkCairo')
>>>
>>> as you suggested, but they had no effect whatsoever. Even the error
>>> output is the same.
>> I'm surprised that isn't having any effect
Dear Michael,
I deeply appreciate your help with this!
On 17/03/10 20:34, Michael Droettboom wrote:
I have tried
import matplotlib
matplotlib.use('GtkCairo')
as you suggested, but they had no effect whatsoever. Even the error
output is the same.
I'm surprised that isn't having any effect. T
David wrote:
> Dear Michael,
>
> thanks for your input. So far, though, no luck.
>
> I have deleted "SimHei" in matplotlibrc, and I can then continue
> generating CJK characters. The png is generated, the eps is not. Thus,
> no change. The error output is also the same:
>
> RuntimeError: Face has
Dear Michael,
thanks for your input. So far, though, no luck.
I have deleted "SimHei" in matplotlibrc, and I can then continue
generating CJK characters. The png is generated, the eps is not. Thus,
no change. The error output is also the same:
RuntimeError: Face has no glyph names
WARNING: F
The font you are using (SimHei) does not have any glyph names -- these
are used in the Postscript backend to refer to glyphs outside of the
ASCII range. More specifically, it looks like it has at least one
invalid glyph name (glyph names can only contain ASCII characters) --
loading it in Font