LaTeX, eps, ghostscript, and the like

I am having a similar problem with online display Latex in

    > matplotlib WXAgg where the display is low resolution . It
    > sounds like you fixed it. I tried to follow the email
    > exchange but I am not sure everything I need to know is
    > there. Could you summarize exactly what the fix is?

    > I have matplotlib 0.86.2 and OSX 10.4.4

Try editing matplotlib/texmanager.py and replacing the < with <= in
the following code; it should read

            if vers<='1.6':
                # hack the alpha channel as described in comment above
                alpha = sqrt(1-X[:,:,0])
            else:
                alpha = X[:,:,-1]

also, print the version number and let us know what you have.

Make sure you rm -rf the ~/.matplotlib/tex.cache after reinstalling.

JDH

I made the change and that fixed the problem. The output of dvipng --version is below.
Thank you very much.
I assume that the fix will be in the cvs version?

One more question. Even though I have my rc file set to use type1cm font
font.latex.package : type1cm
It uses an non latex font for on screen display. The saved version of the plot uses
a latex font but the latex font is always serif regardless of the font.family setting.

How do I get the onscreen display and the file saved to use the serif version of the typelcm font?

dvipng --version
This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson
dvipng 1.6
kpathsea version 3.5.5
Copyright (C) 2002-2005 Jan-Ake Larsson.
There is NO warranty. You may redistribute this software
under the terms of the GNU General Public License.
For more information about these matters, see the files
named COPYING and dvipng.c.

···

On 09 Feb, 2006, at 06:47, John Hunter wrote:

    > I am having a similar problem with online display Latex in
    > matplotlib WXAgg where the display is low resolution . It
    > sounds like you fixed it. I tried to follow the email
    > exchange but I am not sure everything I need to know is
    > there. Could you summarize exactly what the fix is?

    > I have matplotlib 0.86.2 and OSX 10.4.4

Try editing matplotlib/texmanager.py and replacing the < with <= in
the following code; it should read

            if vers<='1.6':
                # hack the alpha channel as described in comment above
                alpha = sqrt(1-X[:,:,0])
            else:
                alpha = X[:,:,-1]

also, print the version number and let us know what you have.

Make sure you rm -rf the ~/.matplotlib/tex.cache after reinstalling.

JDH

**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************