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:
>>>>>> "Wolfgang" == Wolfgang  <[EMAIL PROTECTED]> writes:
> 
>     Wolfgang> Hi all, I have absolutely no idea what the problem
>     Wolfgang> is. I'm running the actual enthought python version (on
>     Wolfgang> WinXP) which includes matplotlib version 0.87.3.
> 
>     Wolfgang> The conversion of the dvi file to png does not work:
>     Wolfgang> dvipng -bg Transparent -D "200" -T tight -o
>     Wolfgang> 
> "C:\temp\temp\.matplotlib\tex.cache\6ded4018a133b00dd5abd9e27ca15efa.png"
>     Wolfgang> 
> "C:\temp\temp\.matplotlib\tex.cache\a7b7bb1f22dc4f78602fb90e430bed74.dvi"
> 
>     Wolfgang> ...  RuntimeError: dvipng was not able to process the
>     Wolfgang> flowing file:
>     Wolfgang> 
> C:\temp\temp\.matplotlib\tex.cache\a7b7bb1f22dc4f78602fb90e430bed74.dvi
>     Wolfgang> Here is the full report generated by dvipng:
> 
>     Wolfgang> This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson
>     Wolfgang> 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


-------------------------------------------------------------------------
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
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to