latex output problem

Hi all, I have absolutely no idea what the problem

    > is. I'm running the actual enthought python version (on
    > WinXP) which includes matplotlib version 0.87.3.

    > The conversion of the dvi file to png does not work:
    > dvipng -bg Transparent -D "200" -T tight -o
    > "C:\temp\temp\.matplotlib\tex.cache\6ded4018a133b00dd5abd9e27ca15efa.png"
    > "C:\temp\temp\.matplotlib\tex.cache\a7b7bb1f22dc4f78602fb90e430bed74.dvi"

    > ... RuntimeError: dvipng was not able to process the
    > flowing file:
    > C:\temp\temp\.matplotlib\tex.cache\a7b7bb1f22dc4f78602fb90e430bed74.dvi
    > Here is the full report generated by dvipng:

    > This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson
    > dvipng: Fatal error, bad -D parameter

I don't understand why the 200 is being quoted in the -D flag, etc

  -D "200"

The relavent bit of code in matplotlib.texmanager reads

            command = self.get_shell_cmd('cd "%s"' % self.texcache,
                        'dvipng -bg Transparent -D %s -T tight -o \
                        "%s" "%s" > "%s"'%(dpi, os.path.split(pngfile)[-1],
                        os.path.split(dvifile)[-1], outfile))

WOlfgang, try playing around with this code in
site-packages/matplotlib/texmanager.py (in the make_png function).
Does this help

            command = self.get_shell_cmd('cd "%s"' % self.texcache,
                        'dvipng -bg Transparent -D %d -T tight -o \
                        "%s" "%s" > "%s"'%(int(dpi), os.path.split(pngfile)[-1],
                        os.path.split(dvifile)[-1], outfile))

JDH

Hello John,

I had also to remove the quotationmarks from the png/dvi Filename
         command = 'dvipng -bg Transparent -D %s -T tight -o %s %s'%\
                   (dpi, pngfile, dvifile)

Now it works fine! Thanks for the quick reply.

Wolfgang

John Hunter schrieb:

···

    > Hi all, I have absolutely no idea what the problem
    > is. I'm running the actual enthought python version (on
    > WinXP) which includes matplotlib version 0.87.3.

    > The conversion of the dvi file to png does not work:
    > dvipng -bg Transparent -D "200" -T tight -o
    > "C:\temp\temp\.matplotlib\tex.cache\6ded4018a133b00dd5abd9e27ca15efa.png"
    > "C:\temp\temp\.matplotlib\tex.cache\a7b7bb1f22dc4f78602fb90e430bed74.dvi"

    > ... RuntimeError: dvipng was not able to process the
    > flowing file:
    > C:\temp\temp\.matplotlib\tex.cache\a7b7bb1f22dc4f78602fb90e430bed74.dvi
    > Here is the full report generated by dvipng:

    > This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson
    > dvipng: Fatal error, bad -D parameter

I don't understand why the 200 is being quoted in the -D flag, etc

  -D "200"

The relavent bit of code in matplotlib.texmanager reads

            command = self.get_shell_cmd('cd "%s"' % self.texcache, 'dvipng -bg Transparent -D %s -T tight -o \
                        "%s" "%s" > "%s"'%(dpi, os.path.split(pngfile)[-1], os.path.split(dvifile)[-1], outfile))

WOlfgang, try playing around with this code in
site-packages/matplotlib/texmanager.py (in the make_png function).
Does this help

            command = self.get_shell_cmd('cd "%s"' % self.texcache, 'dvipng -bg Transparent -D %d -T tight -o \
                        "%s" "%s" > "%s"'%(int(dpi), os.path.split(pngfile)[-1], os.path.split(dvifile)[-1], outfile))

JDH

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642