Sorry, John, but here is my output, and it still doesn't work.

>>> from pylab import *
>>> rcParams['mathtext.fontset']
'cm'
>>> rcParams['mathtext.fallback_to_cm']
True
>>> rcParams['ps.useafm']
False
>>> rcParams['ps.fonttype']
3
>>> plot([1,2,3])
[<matplotlib.lines.Line2D instance at 0x029F0120>]
>>> text(1,1.5,r'$\chi$')
<matplotlib.text.Text instance at 0x029F6968>
>>> savefig('c:/temp/test.eps')

On the same machine, I get the correct eps file with 0.90.1.
So it really isn't my installation of GsView.

In the eps file created with 0.91.2, the cm fonts are not included, which I
think is causing the problem.

What happens when you guys read the attached eps file (created with commands
above)?
Do you see the chi symbol on the screen?

Thanks for looking into this,

Mark


On Wed, Mar 19, 2008 at 2:18 PM, John Hunter <[EMAIL PROTECTED]> wrote:

> On Wed, Mar 19, 2008 at 7:43 AM, Mark Bakker <[EMAIL PROTECTED]> wrote:
> > I have confirmed that it is a bug in (at least the windows version) of
> mpl
> > 0.91.2.
> > When saving eps files, and using mathtext, the cm fonts don't get saved,
> and
> > the
> > greek symbols (and others I presume) don't show up in the eps file.
> >
> > This works in mpl 0.90.1, where the eps file does store the fonts.
> > %%BeginFont: Cmmi10
> >
> > When running the same problem with 0.91.2, the fonts are not stored.
> > Either using ps.fonttype 3 or 42.
> >
> > Anybody who can fix this?
>
> My guess is that you are picking up an rc file where useafm is set to
> True.  Michael suggested checking this rc setting but I did not see
> any response on this on list.  Have you checked it?  In the script
> that is causing you trouble, print out the value
>
> import matplotlib
>
> print 'afm setting', matplotlib.rcParams['ps.useafm']
>
> If this is True, then you need to find your matplotlibrc file and set
> it to False.
>
> I can't imagine a windows vs other platform issue that could cause
> this since we do not use only matplotlib tools in our font conversion
> pipeline
>
> JDH
>

Attachment: test.eps
Description: PostScript document

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to