Re: [Matplotlib-users] [CJK] can create png but not eps

2010-03-19 Thread Michael Droettboom
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 changes. I'm

Re: [Matplotlib-users] [CJK] can create png but not eps: some successes

2010-03-19 Thread David
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

Re: [Matplotlib-users] [CJK] can create png but not eps

2010-03-18 Thread Michael Droettboom
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. The Cairo backend should

Re: [Matplotlib-users] [CJK] can create png but not eps

2010-03-17 Thread Michael Droettboom
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 no glyph

Re: [Matplotlib-users] [CJK] can create png but not eps

2010-03-17 Thread David
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.

[Matplotlib-users] [CJK] can create png but not eps

2010-03-16 Thread David
Hello everybody, I have a final problem with my graph. As a last step I produce an *.eps file that I use in conjunction with LaTeX. Here is the last part of my code: # plt.title('Title') xlab = plt.xlabel(u'输入 1') #xlab.set_position((0.2, 0.1)) ylab = plt.ylabel(u'输入 2') plt.grid(True)

Re: [Matplotlib-users] [CJK] can create png but not eps

2010-03-16 Thread Michael Droettboom
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

Re: [Matplotlib-users] [CJK] can create png but not eps

2010-03-16 Thread David
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: