tex-text problem

Hi,

I'm quite new to python and matplotlib, but at least simple graphs work already. But now I tried to use tex for processing labels.

tex, latex, dvipng and ghostscript are in my path. A manual tex-run on the tex file produces a dvi file.

Any help is appreciated
Wolfgang

PS: I'm runnin on WinXP prof

···

##########################################################################
My script:
from matplotlib import rc
from matplotlib.numerix import arange, cos, pi
from pylab import figure, axes, plot, xlabel, ylabel, title, grid, savefig, show

rc('text', usetex=True)
figure(1)
ax = axes([0.1, 0.1, 0.8, 0.7])
t = arange(0.0, 1.0+0.01, 0.01)
s = cos(2*2*pi*t)+2
plot(t, s)

xlabel(r'\textbf{time (s)}')
ylabel(r'\textit{voltage (mV)}',fontsize=16)
title(r"\TeX\ is Number $\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!", fontsize=16, color='r')
grid(True)
savefig('tex_demo')

show()

##########################################################################
And here the error:
>pythonw -u "tex.py"
Traceback (most recent call last):
   File "tex.py", line 16, in ?
     savefig('tex_demo')
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\pylab.py", line 811, in savefig
     return fig.savefig(*args, **kwargs)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\figure.py", line 660, in savefig
     self.canvas.print_figure(*args, **kwargs)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\backends\backend_tkagg.py", line 184, in print_figure
     agg.print_figure(filename, dpi, facecolor, edgecolor, orientation,
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\backends\backend_agg.py", line 452, in print_figure
     self.draw()
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\backends\backend_agg.py", line 389, in draw
     self.figure.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\figure.py", line 531, in draw
     for a in self.axes: a.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\axes.py", line 1034, in draw
     a.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\axis.py", line 561, in draw
     tick.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\axis.py", line 161, in draw
     if self.label1On: self.label1.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\text.py", line 1167, in draw
     Text.draw(self, renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\text.py", line 339, in draw
     bbox, info = self._get_layout(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\text.py", line 186, in _get_layout
     w,h = renderer.get_text_width_height(
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\backends\backend_agg.py", line 239, in get_text_width_height
     Z = texmanager.get_rgba(s, size, self.dpi.get(), rgb)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\texmanager.py", line 401, in get_rgba
     pngfile = self.make_png(tex, fontsize, dpi, force=False)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\texmanager.py", line 227, in make_png
     dvifile = self.make_dvi(tex, fontsize)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\texmanager.py", line 197, in make_dvi
     if exit_status: raise RuntimeError('LaTeX was not able to process \
RuntimeError: LaTeX was not able to process the flowing string:
0.0
Here is the full report generated by LaTeX:

The system cannot find the path specified.

##########################################################################
But I can run the created tex-file manually:
latex -interaction=nonstopmode "3bb1bc57100b0c65915bdda3a1f60dae.tex"

This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4) (preloaded format=latex 2006.6.11) 11 JUN 2006 13:52
entering extended mode
**3bb1bc57100b0c65915bdda3a1f60dae.tex
(3bb1bc57100b0c65915bdda3a1f60dae.tex
LaTeX2e <2005/12/01>
Babel <v3.8g> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, french, loaded.
(C:\texmf\tex\latex\base\article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(C:\texmf\tex\latex\base\size10.clo
File: size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
)
\c@...1131...=\count79
\c@...1132...=\count80
\c@...1133...=\count81
\c@...1134...=\count82
\c@...1135...=\count83
\c@...1136...=\count84
\c@...1137...=\count85
\c@...1138...=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (C:\texmf\tex\latex\type1cm\type1cm.sty
Package: type1cm 2002/09/05 v0.04 BlueSky/Y&Y Type1 CM font definitions (DPC, p
atched RF)
)
(C:\texmf\tex\latex\psnfss\helvet.sty
Package: helvet 2005/04/12 PSNFSS-v9.2a (WaS)
  (C:\texmf\tex\latex\graphics\keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@...1139...@=\toks14
)) (C:\texmf\tex\latex\psnfss\courier.sty
Package: courier 2005/04/12 PSNFSS-v9.2a (WaS)
) (C:\texmf\tex\latex\base\textcomp.sty
Package: textcomp 2005/09/27 v1.99g Standard LaTeX package
Package textcomp Info: Sub-encoding information:
(textcomp) 5 = only ISO-Adobe without \textcurrency
(textcomp) 4 = 5 + \texteuro
(textcomp) 3 = 4 + \textohm
(textcomp) 2 = 3 + \textestimated + \textcurrency
(textcomp) 1 = TS1 - \textcircled - \t
(textcomp) 0 = TS1 (full)
(textcomp) Font families with sub-encoding setting implement
(textcomp) only a restricted character set as indicated.
(textcomp) Family '?' is the default used for unknown fonts.
(textcomp) See the documentation for details.
Package textcomp Info: Setting ? sub-encoding to TS1/1 on input line 71.

(C:\texmf\tex\latex\base\ts1enc.def
File: ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
)
LaTeX Info: Redefining \oldstylenums on input line 266.
Package textcomp Info: Setting cmr sub-encoding to TS1/0 on input line 281.
Package textcomp Info: Setting cmss sub-encoding to TS1/0 on input line 282.
Package textcomp Info: Setting cmtt sub-encoding to TS1/0 on input line 283.
Package textcomp Info: Setting cmvtt sub-encoding to TS1/0 on input line 284.
Package textcomp Info: Setting cmbr sub-encoding to TS1/0 on input line 285.
Package textcomp Info: Setting cmtl sub-encoding to TS1/0 on input line 286.
Package textcomp Info: Setting ccr sub-encoding to TS1/0 on input line 287.
Package textcomp Info: Setting ptm sub-encoding to TS1/4 on input line 288.
Package textcomp Info: Setting pcr sub-encoding to TS1/4 on input line 289.
Package textcomp Info: Setting phv sub-encoding to TS1/4 on input line 290.
Package textcomp Info: Setting ppl sub-encoding to TS1/3 on input line 291.
Package textcomp Info: Setting pag sub-encoding to TS1/4 on input line 292.
Package textcomp Info: Setting pbk sub-encoding to TS1/4 on input line 293.
Package textcomp Info: Setting pnc sub-encoding to TS1/4 on input line 294.
Package textcomp Info: Setting pzc sub-encoding to TS1/4 on input line 295.
Package textcomp Info: Setting bch sub-encoding to TS1/4 on input line 296.
Package textcomp Info: Setting put sub-encoding to TS1/5 on input line 297.
Package textcomp Info: Setting uag sub-encoding to TS1/5 on input line 298.
Package textcomp Info: Setting ugq sub-encoding to TS1/5 on input line 299.
Package textcomp Info: Setting ul8 sub-encoding to TS1/4 on input line 300.
Package textcomp Info: Setting ul9 sub-encoding to TS1/4 on input line 301.
Package textcomp Info: Setting augie sub-encoding to TS1/5 on input line 302.
Package textcomp Info: Setting dayrom sub-encoding to TS1/3 on input line 303.
Package textcomp Info: Setting dayroms sub-encoding to TS1/3 on input line 304.

Package textcomp Info: Setting pxr sub-encoding to TS1/0 on input line 305.
Package textcomp Info: Setting pxss sub-encoding to TS1/0 on input line 306.
Package textcomp Info: Setting pxtt sub-encoding to TS1/0 on input line 307.
Package textcomp Info: Setting txr sub-encoding to TS1/0 on input line 308.
Package textcomp Info: Setting txss sub-encoding to TS1/0 on input line 309.
Package textcomp Info: Setting txtt sub-encoding to TS1/0 on input line 310.
Package textcomp Info: Setting futs sub-encoding to TS1/4 on input line 311.
Package textcomp Info: Setting futx sub-encoding to TS1/4 on input line 312.
Package textcomp Info: Setting futj sub-encoding to TS1/4 on input line 313.
Package textcomp Info: Setting hlh sub-encoding to TS1/3 on input line 314.
Package textcomp Info: Setting hls sub-encoding to TS1/3 on input line 315.
Package textcomp Info: Setting hlst sub-encoding to TS1/3 on input line 316.
Package textcomp Info: Setting hlct sub-encoding to TS1/5 on input line 317.
Package textcomp Info: Setting hlx sub-encoding to TS1/5 on input line 318.
Package textcomp Info: Setting hlce sub-encoding to TS1/5 on input line 319.
Package textcomp Info: Setting hlcn sub-encoding to TS1/5 on input line 320.
Package textcomp Info: Setting hlcw sub-encoding to TS1/5 on input line 321.
Package textcomp Info: Setting hlcf sub-encoding to TS1/5 on input line 322.
Package textcomp Info: Setting pplx sub-encoding to TS1/3 on input line 323.
Package textcomp Info: Setting pplj sub-encoding to TS1/3 on input line 324.
Package textcomp Info: Setting ptmx sub-encoding to TS1/4 on input line 325.
Package textcomp Info: Setting ptmj sub-encoding to TS1/4 on input line 326.
) (C:\texmf\tex\latex\geometry\geometry.sty
Package: geometry 2002/07/08 v3.2 Page Geometry
\Gm@...1140...=\count87
\Gm@...1141...=\count88
\c@...1142...@tempcnt=\count89
\Gm@...1143...=\dimen103
\Gm@...1144...@mp=\dimen104
\Gm@...1145...@mp=\dimen105
\Gm@...1146...@mp=\dimen106
\Gm@...1147...=\toks15
(C:\texmf\tex\latex\geometry\geometry.cfg)

Package geometry Warning: Over-specification in `h'-direction.
     `width' (5058.9pt) is ignored.

Package geometry Warning: Over-specification in `v'-direction.
     `height' (5058.9pt) is ignored.

)
No file 3bb1bc57100b0c65915bdda3a1f60dae.aux.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 9.
LaTeX Font Info: Try loading font information for TS1+cmr on input line 9.
(C:\texmf\tex\latex\base\ts1cmr.fd
File: ts1cmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
)
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Try loading font information for OT1+pnc on input line 9.
  (C:\texmf\tex\latex\psnfss\ot1pnc.fd
File: ot1pnc.fd 2001/06/04 font definitions for OT1/pnc.
)
-------------------- Geometry parameters
paper: user defined
landscape: --
twocolumn: --
twoside: --
asymmetric: --
h-parts: 72.26999pt, 5058.90001pt, 72.26999pt
v-parts: 72.26999pt, 5058.90001pt, 72.26999pt
hmarginratio: --
vmarginratio: --
lines: --
heightrounded: --
bindingoffset: 0.0pt
truedimen: --
includehead: --
includefoot: --
includemp: --
driver:
-------------------- Page layout dimensions and switches
\paperwidth 5203.43999pt
\paperheight 5203.43999pt
\textwidth 5058.90001pt
\textheight 5058.90001pt
\oddsidemargin 0.0pt
\evensidemargin 0.0pt
\topmargin -37.0pt
\headheight 12.0pt
\headsep 25.0pt
\footskip 30.0pt
\marginparwidth 65.0pt
\marginparsep 11.0pt
\columnsep 10.0pt
\skip\footins 9.0pt plus 4.0pt minus 2.0pt
\hoffset 0.0pt
\voffset 0.0pt
\mag 1000

(1in=72.27pt, 1cm=28.45pt)
-----------------------
LaTeX Font Info: Try loading font information for OT1+phv on input line 10.

(C:\texmf\tex\latex\psnfss\ot1phv.fd
File: ot1phv.fd 2001/06/04 scalable font definitions for OT1/phv.
) [1

] (3bb1bc57100b0c65915bdda3a1f60dae.aux) )
Here is how much of TeX's memory you used:
  1241 strings out of 95889
  17222 string characters out of 1195257
  57891 words of memory out of 1061592
  4295 multiletter control sequences out of 60000
  5188 words of font info for 17 fonts, out of 1000000 for 2000
  14 hyphenation exceptions out of 4999
  24i,4n,32p,229b,105s stack positions out of 5000i,500n,10000p,200000b,32768s

Output written on 3bb1bc57100b0c65915bdda3a1f60dae.dvi (1 page, 208 bytes).

Please set verbose.level : debug in your matplotlibrc file, and then rerun
your script and post the full output, including the full latex report.

Darren

···

On Sunday 11 June 2006 7:57 am, Wolfgang wrote:

Hi,

I'm quite new to python and matplotlib, but at least simple graphs work
already. But now I tried to use tex for processing labels.

tex, latex, dvipng and ghostscript are in my path. A manual tex-run on
the tex file produces a dvi file.

Any help is appreciated
Wolfgang

PS: I'm runnin on WinXP prof

##########################################################################
My script:
from matplotlib import rc
from matplotlib.numerix import arange, cos, pi
from pylab import figure, axes, plot, xlabel, ylabel, title, grid,
savefig, show

rc('text', usetex=True)
figure(1)
ax = axes([0.1, 0.1, 0.8, 0.7])
t = arange(0.0, 1.0+0.01, 0.01)
s = cos(2*2*pi*t)+2
plot(t, s)

xlabel(r'\textbf{time (s)}')
ylabel(r'\textit{voltage (mV)}',fontsize=16)
title(r"\TeX\ is Number
$\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!", fontsize=16,
color='r')
grid(True)
savefig('tex_demo')

show()

##########################################################################

And here the error:
>pythonw -u "tex.py"

Traceback (most recent call last):
   File "tex.py", line 16, in ?
     savefig('tex_demo')
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\pylab.py", line 811, in savefig
     return fig.savefig(*args, **kwargs)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\figure.py", line 660, in savefig
     self.canvas.print_figure(*args, **kwargs)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\backends\backend_tkagg.py", line 184, in print_figure
     agg.print_figure(filename, dpi, facecolor, edgecolor, orientation,
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\backends\backend_agg.py", line 452, in print_figure
     self.draw()
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\backends\backend_agg.py", line 389, in draw
     self.figure.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\figure.py", line 531, in draw
     for a in self.axes: a.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\axes.py", line 1034, in draw
     a.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\axis.py", line 561, in draw
     tick.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\axis.py", line 161, in draw
     if self.label1On: self.label1.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\text.py", line 1167, in draw
     Text.draw(self, renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\text.py", line 339, in draw
     bbox, info = self._get_layout(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\text.py", line 186, in _get_layout
     w,h = renderer.get_text_width_height(
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\backends\backend_agg.py", line 239, in get_text_width_height
     Z = texmanager.get_rgba(s, size, self.dpi.get(), rgb)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\texmanager.py", line 401, in get_rgba
     pngfile = self.make_png(tex, fontsize, dpi, force=False)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\texmanager.py", line 227, in make_png
     dvifile = self.make_dvi(tex, fontsize)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\texmanager.py", line 197, in make_dvi
     if exit_status: raise RuntimeError('LaTeX was not able to process \
RuntimeError: LaTeX was not able to process the flowing string:
0.0
Here is the full report generated by LaTeX:

The system cannot find the path specified.

##########################################################################
But I can run the created tex-file manually:
latex -interaction=nonstopmode "3bb1bc57100b0c65915bdda3a1f60dae.tex"

This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4) (preloaded format=latex
2006.6.11) 11 JUN 2006 13:52
entering extended mode
**3bb1bc57100b0c65915bdda3a1f60dae.tex
(3bb1bc57100b0c65915bdda3a1f60dae.tex
LaTeX2e <2005/12/01>
Babel <v3.8g> and hyphenation patterns for english, dumylang,
nohyphenation, ge
rman, ngerman, french, loaded.
(C:\texmf\tex\latex\base\article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(C:\texmf\tex\latex\base\size10.clo
File: size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
)
\c@...1131...=\count79
\c@...1132...=\count80
\c@...1133...=\count81
\c@...1134...=\count82
\c@...1135...=\count83
\c@...1136...=\count84
\c@...1137...=\count85
\c@...1138...=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (C:\texmf\tex\latex\type1cm\type1cm.sty
Package: type1cm 2002/09/05 v0.04 BlueSky/Y&Y Type1 CM font definitions
(DPC, p
atched RF)
)
(C:\texmf\tex\latex\psnfss\helvet.sty
Package: helvet 2005/04/12 PSNFSS-v9.2a (WaS)
  (C:\texmf\tex\latex\graphics\keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@...1139...@=\toks14
)) (C:\texmf\tex\latex\psnfss\courier.sty
Package: courier 2005/04/12 PSNFSS-v9.2a (WaS)
) (C:\texmf\tex\latex\base\textcomp.sty
Package: textcomp 2005/09/27 v1.99g Standard LaTeX package
Package textcomp Info: Sub-encoding information:
(textcomp) 5 = only ISO-Adobe without \textcurrency
(textcomp) 4 = 5 + \texteuro
(textcomp) 3 = 4 + \textohm
(textcomp) 2 = 3 + \textestimated + \textcurrency
(textcomp) 1 = TS1 - \textcircled - \t
(textcomp) 0 = TS1 (full)
(textcomp) Font families with sub-encoding setting implement
(textcomp) only a restricted character set as indicated.
(textcomp) Family '?' is the default used for unknown fonts.
(textcomp) See the documentation for details.
Package textcomp Info: Setting ? sub-encoding to TS1/1 on input line 71.

(C:\texmf\tex\latex\base\ts1enc.def
File: ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
)
LaTeX Info: Redefining \oldstylenums on input line 266.
Package textcomp Info: Setting cmr sub-encoding to TS1/0 on input line 281.
Package textcomp Info: Setting cmss sub-encoding to TS1/0 on input line
282. Package textcomp Info: Setting cmtt sub-encoding to TS1/0 on input
line 283. Package textcomp Info: Setting cmvtt sub-encoding to TS1/0 on
input line 284.
Package textcomp Info: Setting cmbr sub-encoding to TS1/0 on input line
285. Package textcomp Info: Setting cmtl sub-encoding to TS1/0 on input
line 286. Package textcomp Info: Setting ccr sub-encoding to TS1/0 on input
line 287. Package textcomp Info: Setting ptm sub-encoding to TS1/4 on input
line 288. Package textcomp Info: Setting pcr sub-encoding to TS1/4 on input
line 289. Package textcomp Info: Setting phv sub-encoding to TS1/4 on input
line 290. Package textcomp Info: Setting ppl sub-encoding to TS1/3 on input
line 291. Package textcomp Info: Setting pag sub-encoding to TS1/4 on input
line 292. Package textcomp Info: Setting pbk sub-encoding to TS1/4 on input
line 293. Package textcomp Info: Setting pnc sub-encoding to TS1/4 on input
line 294. Package textcomp Info: Setting pzc sub-encoding to TS1/4 on input
line 295. Package textcomp Info: Setting bch sub-encoding to TS1/4 on input
line 296. Package textcomp Info: Setting put sub-encoding to TS1/5 on input
line 297. Package textcomp Info: Setting uag sub-encoding to TS1/5 on input
line 298. Package textcomp Info: Setting ugq sub-encoding to TS1/5 on input
line 299. Package textcomp Info: Setting ul8 sub-encoding to TS1/4 on input
line 300. Package textcomp Info: Setting ul9 sub-encoding to TS1/4 on input
line 301. Package textcomp Info: Setting augie sub-encoding to TS1/5 on
input line 302.
Package textcomp Info: Setting dayrom sub-encoding to TS1/3 on input
line 303.
Package textcomp Info: Setting dayroms sub-encoding to TS1/3 on input
line 304.

Package textcomp Info: Setting pxr sub-encoding to TS1/0 on input line 305.
Package textcomp Info: Setting pxss sub-encoding to TS1/0 on input line
306. Package textcomp Info: Setting pxtt sub-encoding to TS1/0 on input
line 307. Package textcomp Info: Setting txr sub-encoding to TS1/0 on input
line 308. Package textcomp Info: Setting txss sub-encoding to TS1/0 on
input line 309. Package textcomp Info: Setting txtt sub-encoding to TS1/0
on input line 310. Package textcomp Info: Setting futs sub-encoding to
TS1/4 on input line 311. Package textcomp Info: Setting futx sub-encoding
to TS1/4 on input line 312. Package textcomp Info: Setting futj
sub-encoding to TS1/4 on input line 313. Package textcomp Info: Setting hlh
sub-encoding to TS1/3 on input line 314. Package textcomp Info: Setting hls
sub-encoding to TS1/3 on input line 315. Package textcomp Info: Setting
hlst sub-encoding to TS1/3 on input line 316. Package textcomp Info:
Setting hlct sub-encoding to TS1/5 on input line 317. Package textcomp
Info: Setting hlx sub-encoding to TS1/5 on input line 318. Package textcomp
Info: Setting hlce sub-encoding to TS1/5 on input line 319. Package
textcomp Info: Setting hlcn sub-encoding to TS1/5 on input line 320.
Package textcomp Info: Setting hlcw sub-encoding to TS1/5 on input line
321. Package textcomp Info: Setting hlcf sub-encoding to TS1/5 on input
line 322. Package textcomp Info: Setting pplx sub-encoding to TS1/3 on
input line 323. Package textcomp Info: Setting pplj sub-encoding to TS1/3
on input line 324. Package textcomp Info: Setting ptmx sub-encoding to
TS1/4 on input line 325. Package textcomp Info: Setting ptmj sub-encoding
to TS1/4 on input line 326. ) (C:\texmf\tex\latex\geometry\geometry.sty
Package: geometry 2002/07/08 v3.2 Page Geometry
\Gm@...1140...=\count87
\Gm@...1141...=\count88
\c@...1142...@tempcnt=\count89
\Gm@...1143...=\dimen103
\Gm@...1144...@mp=\dimen104
\Gm@...1145...@mp=\dimen105
\Gm@...1146...@mp=\dimen106
\Gm@...1147...=\toks15
(C:\texmf\tex\latex\geometry\geometry.cfg)

Package geometry Warning: Over-specification in `h'-direction.
     `width' (5058.9pt) is ignored.

Package geometry Warning: Over-specification in `v'-direction.
     `height' (5058.9pt) is ignored.

)
No file 3bb1bc57100b0c65915bdda3a1f60dae.aux.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 9.
LaTeX Font Info: Try loading font information for TS1+cmr on input
line 9.
(C:\texmf\tex\latex\base\ts1cmr.fd
File: ts1cmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
)
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Try loading font information for OT1+pnc on input
line 9.
  (C:\texmf\tex\latex\psnfss\ot1pnc.fd
File: ot1pnc.fd 2001/06/04 font definitions for OT1/pnc.
)
-------------------- Geometry parameters
paper: user defined
landscape: --
twocolumn: --
twoside: --
asymmetric: --
h-parts: 72.26999pt, 5058.90001pt, 72.26999pt
v-parts: 72.26999pt, 5058.90001pt, 72.26999pt
hmarginratio: --
vmarginratio: --
lines: --
heightrounded: --
bindingoffset: 0.0pt
truedimen: --
includehead: --
includefoot: --
includemp: --
driver:
-------------------- Page layout dimensions and switches
\paperwidth 5203.43999pt
\paperheight 5203.43999pt
\textwidth 5058.90001pt
\textheight 5058.90001pt
\oddsidemargin 0.0pt
\evensidemargin 0.0pt
\topmargin -37.0pt
\headheight 12.0pt
\headsep 25.0pt
\footskip 30.0pt
\marginparwidth 65.0pt
\marginparsep 11.0pt
\columnsep 10.0pt
\skip\footins 9.0pt plus 4.0pt minus 2.0pt
\hoffset 0.0pt
\voffset 0.0pt
\mag 1000

(1in=72.27pt, 1cm=28.45pt)
-----------------------
LaTeX Font Info: Try loading font information for OT1+phv on input
line 10.

(C:\texmf\tex\latex\psnfss\ot1phv.fd
File: ot1phv.fd 2001/06/04 scalable font definitions for OT1/phv.
) [1

] (3bb1bc57100b0c65915bdda3a1f60dae.aux) )
Here is how much of TeX's memory you used:
  1241 strings out of 95889
  17222 string characters out of 1195257
  57891 words of memory out of 1061592
  4295 multiletter control sequences out of 60000
  5188 words of font info for 17 fonts, out of 1000000 for 2000
  14 hyphenation exceptions out of 4999
  24i,4n,32p,229b,105s stack positions out of
5000i,500n,10000p,200000b,32768s

Output written on 3bb1bc57100b0c65915bdda3a1f60dae.dvi (1 page, 208 bytes).

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Darren S. Dale, Ph.D.
dd55@...163...

Hi,

there is no output from latex produced as it can't find the file!

But here is the verbose error output (my python file is called tex.py, the content is listed in my last message):

D:\temp\py_plotlib>tex.py --verbose-debug-annoying
matplotlib data path D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.
3-py2.4-win32.egg\matplotlib\mpl-data
$HOME=C:\Documents and Settings\s0167070
CONFIGDIR=C:\Documents and Settings\s0167070\.matplotlib
loaded rc file D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.
4-win32.egg\matplotlib\mpl-data\matplotlibrc
matplotlib version 0.87.3
verbose.level debug-annoying
interactive is False
platform is win32
loaded modules: ['_bisect', 'distutils', 'random', 'datetime', 'matplotlib.tempf
ile', 'distutils.sysconfig', 'pytz.datetime', 'distutils.dep_util', 'tempfile',
'imp', 'zipimport', 'string', 'matplotlib.__future__', 'pytz.tzinfo', 'distutils
.re', 'bisect', 'signal', 'matplotlib.pytz', 'distutils.log', 'locale', 'encodin
gs', 'dateutil', 'matplotlib.warnings', 'matplotlib.sys', 're', 'ntpath', 'new',
  'math', 'UserDict', 'distutils.os', 'matplotlib', 'codecs', 'md5', '_locale', '
matplotlib.os', 'thread', 'sre', 'pkg_resources', 'itertools', 'distutils.spawn'
, 'distutils.sys', 'os', '__future__', '_sre', '__builtin__', 'matplotlib.re', '
distutils.util', 'distutils.string', 'matplotlib.datetime', 'errno', 'binascii',
  'sre_constants', 'matplotlib.md5', 'types', 'pytz.sys', '_codecs', 'encodings.c
p1252', 'pytz', 'matplotlib.dateutil', 'encodings.aliases', 'exceptions', 'sre_p
arse', 'pytz.bisect', 'distutils.distutils', 'copy_reg', 'sre_compile', '_random
', 'site', '__main__', 'shutil', 'strop', 'encodings.codecs', 'encodings.excepti
ons', 'nt', 'pytz.sets', 'stat', 'matplotlib.toolkits', 'warnings', 'encodings.t
ypes', 'time', 'sys', 'os.path', 'matplotlib.distutils', 'distutils.errors', 'li
necache', 'matplotlib.shutil', 'sets']
numerix Numeric 24.2
font search path ['D:\\Programme\\Python2.4.3\\lib\\site-packages\\matplotlib-0.
87.3-py2.4-win32.egg\\matplotlib\\mpl-data']
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\VeraIt.ttf
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\VeraMoIt.ttf
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\cmsy10.ttf
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\VeraMono.ttf
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\VeraBI.ttf
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\VeraSe.ttf
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\VeraMoBI.ttf
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\Vera.ttf
loaded ttfcache file C:\Documents and Settings\s0167070\.matplotlib\ttffont.cach
e
backend TkAgg version 8.4
FigureCanvasAgg.print_figure
FigureCanvasAgg.draw
RendererAgg.__init__
RendererAgg.__init__ width=800.0, height=600.0
RendererAgg.__init__ _RendererAgg done
RendererAgg.__init__ done
RendererAgg._get_agg_font
         findfont failed Lucida Grande
         findfont found Verdana, normal, normal 500, normal, 12.0
findfont returning c:\windows\fonts\verdana.ttf
cd c:\docume~1\s0167070\locals~1\temp; latex -interaction=nonstopmode "3bb1bc571
00b0c65915bdda3a1f60dae.tex"
Traceback (most recent call last):
   File "D:\temp\py_plotlib\tex.py", line 16, in ?
     savefig('tex_demo')
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\pylab.py", line 811, in savefig
     return fig.savefig(*args, **kwargs)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\figure.py", line 660, in savefig
     self.canvas.print_figure(*args, **kwargs)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\backends\backend_tkagg.py", line 184, in print_figure
     agg.print_figure(filename, dpi, facecolor, edgecolor, orientation,
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\backends\backend_agg.py", line 452, in print_figure
     self.draw()
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\backends\backend_agg.py", line 389, in draw
     self.figure.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\figure.py", line 531, in draw
     for a in self.axes: a.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\axes.py", line 1034, in draw
     a.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\axis.py", line 561, in draw
     tick.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\axis.py", line 161, in draw
     if self.label1On: self.label1.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\text.py", line 1167, in draw
     Text.draw(self, renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\text.py", line 339, in draw
     bbox, info = self._get_layout(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\text.py", line 186, in _get_layout
     w,h = renderer.get_text_width_height(
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\backends\backend_agg.py", line 239, in get_text_width_height
     Z = texmanager.get_rgba(s, size, self.dpi.get(), rgb)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\texmanager.py", line 401, in get_rgba
     pngfile = self.make_png(tex, fontsize, dpi, force=False)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\texmanager.py", line 227, in make_png
     dvifile = self.make_dvi(tex, fontsize)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\texmanager.py", line 197, in make_dvi
     if exit_status: raise RuntimeError('LaTeX was not able to process \
RuntimeError: LaTeX was not able to process the flowing string:
0.0
Here is the full report generated by LaTeX:

The system cannot find the path specified.

Hope that someone has a clue about whats going wrong here!

Thanks
Wolfgang

Please try changing line 191 in texmanager.py from this:

command = 'cd %s; latex -interaction=nonstopmode "%s"'\

to this:

command = 'cd "%s"; latex -interaction=nonstopmode "%s"'\

Also, backens/backend_ps.py line 1274 needs to be changed:

command = 'cd "%s"; latex -interaction=nonstopmode "%s"'%(gettempdir(),
latexfile)

as does line 1287:

command = 'cd "%s"; dvips -o "%s" "%s"' % (gettempdir(), psfile, dvifile)

These changes are in svn 2465. Sorry for the trouble.

Darren

···

On Sunday 11 June 2006 12:45, Wolfgang wrote:

Hi,

there is no output from latex produced as it can't find the file!

But here is the verbose error output (my python file is called tex.py,
the content is listed in my last message):

D:\temp\py_plotlib>tex.py --verbose-debug-annoying
matplotlib data path
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.
3-py2.4-win32.egg\matplotlib\mpl-data
$HOME=C:\Documents and Settings\s0167070
CONFIGDIR=C:\Documents and Settings\s0167070\.matplotlib
loaded rc file
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.
4-win32.egg\matplotlib\mpl-data\matplotlibrc
matplotlib version 0.87.3
verbose.level debug-annoying
interactive is False
platform is win32
loaded modules: ['_bisect', 'distutils', 'random', 'datetime',
'matplotlib.tempf
ile', 'distutils.sysconfig', 'pytz.datetime', 'distutils.dep_util',
'tempfile',
'imp', 'zipimport', 'string', 'matplotlib.__future__', 'pytz.tzinfo',
'distutils
.re', 'bisect', 'signal', 'matplotlib.pytz', 'distutils.log', 'locale',
'encodin
gs', 'dateutil', 'matplotlib.warnings', 'matplotlib.sys', 're',
'ntpath', 'new',
  'math', 'UserDict', 'distutils.os', 'matplotlib', 'codecs', 'md5',
'_locale', '
matplotlib.os', 'thread', 'sre', 'pkg_resources', 'itertools',
'distutils.spawn'
, 'distutils.sys', 'os', '__future__', '_sre', '__builtin__',
'matplotlib.re', '
distutils.util', 'distutils.string', 'matplotlib.datetime', 'errno',
'binascii',
  'sre_constants', 'matplotlib.md5', 'types', 'pytz.sys', '_codecs',
'encodings.c
p1252', 'pytz', 'matplotlib.dateutil', 'encodings.aliases',
'exceptions', 'sre_p
arse', 'pytz.bisect', 'distutils.distutils', 'copy_reg', 'sre_compile',
'_random
', 'site', '__main__', 'shutil', 'strop', 'encodings.codecs',
'encodings.excepti
ons', 'nt', 'pytz.sets', 'stat', 'matplotlib.toolkits', 'warnings',
'encodings.t
ypes', 'time', 'sys', 'os.path', 'matplotlib.distutils',
'distutils.errors', 'li
necache', 'matplotlib.shutil', 'sets']
numerix Numeric 24.2
font search path
['D:\\Programme\\Python2.4.3\\lib\\site-packages\\matplotlib-0.
87.3-py2.4-win32.egg\\matplotlib\\mpl-data']
trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\VeraIt.ttf
trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\VeraMoIt.ttf
trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\cmsy10.ttf
trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\VeraMono.ttf
trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\VeraBI.ttf
trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\VeraSe.ttf
trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\VeraMoBI.ttf
trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
.4-win32.egg\matplotlib\mpl-data\Vera.ttf
loaded ttfcache file C:\Documents and
Settings\s0167070\.matplotlib\ttffont.cach
e
backend TkAgg version 8.4
FigureCanvasAgg.print_figure
FigureCanvasAgg.draw
RendererAgg.__init__
RendererAgg.__init__ width=800.0, height=600.0
RendererAgg.__init__ _RendererAgg done
RendererAgg.__init__ done
RendererAgg._get_agg_font
         findfont failed Lucida Grande
         findfont found Verdana, normal, normal 500, normal, 12.0
findfont returning c:\windows\fonts\verdana.ttf
cd c:\docume~1\s0167070\locals~1\temp; latex -interaction=nonstopmode
"3bb1bc571
00b0c65915bdda3a1f60dae.tex"
Traceback (most recent call last):
   File "D:\temp\py_plotlib\tex.py", line 16, in ?
     savefig('tex_demo')
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\pylab.py", line 811, in savefig
     return fig.savefig(*args, **kwargs)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\figure.py", line 660, in savefig
     self.canvas.print_figure(*args, **kwargs)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\backends\backend_tkagg.py", line 184, in print_figure
     agg.print_figure(filename, dpi, facecolor, edgecolor, orientation,
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\backends\backend_agg.py", line 452, in print_figure
     self.draw()
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\backends\backend_agg.py", line 389, in draw
     self.figure.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\figure.py", line 531, in draw
     for a in self.axes: a.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\axes.py", line 1034, in draw
     a.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\axis.py", line 561, in draw
     tick.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\axis.py", line 161, in draw
     if self.label1On: self.label1.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\text.py", line 1167, in draw
     Text.draw(self, renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\text.py", line 339, in draw
     bbox, info = self._get_layout(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\text.py", line 186, in _get_layout
     w,h = renderer.get_text_width_height(
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\backends\backend_agg.py", line 239, in
get_text_width_height Z = texmanager.get_rgba(s, size, self.dpi.get(), rgb)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\texmanager.py", line 401, in get_rgba
     pngfile = self.make_png(tex, fontsize, dpi, force=False)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\texmanager.py", line 227, in make_png
     dvifile = self.make_dvi(tex, fontsize)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
.egg\matplotlib\texmanager.py", line 197, in make_dvi
     if exit_status: raise RuntimeError('LaTeX was not able to process \
RuntimeError: LaTeX was not able to process the flowing string:
0.0
Here is the full report generated by LaTeX:

The system cannot find the path specified.

Hope that someone has a clue about whats going wrong here!

Thanks
Wolfgang

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Darren S. Dale, Ph.D.
Cornell High Energy Synchrotron Source
Cornell University
200L Wilson Lab
Rt. 366 & Pine Tree Road
Ithaca, NY 14853

dd55@...163...
office: (607) 255-9894
fax: (607) 255-9001

Hi,

with some manual adjustments in texmanager.py I get the first tex file processed to an dvi and both files (tex + dvi) are copied into this folder:
C:\Documents and Settings\s0167070\.matplotlib\tex.cache

but now dvipng refuses to do its job:

     if exit_status: raise RuntimeError('dvipng was not able to \
RuntimeError: dvipng was not able to process the flowing file:
C:\Documents and Settings\s0167070\.matplotlib\tex.cache\3bb1bc57100b0c65915bdda3a1f60dae.dvi
Here is the full report generated by dvipng:

Settings\s0167070\.matplotlib\tex.cache\3bb1bc57100b0c65915bdda3a1f60dae.dvi": No such file or directory

It seems that the spaces in the temp path produce the error. Is there a way to change the temp dir (beneath in system settings of XP)?

Thanks
Wolfgang

I'm sorry Wolfgang, but I don't have access to a windows computer at home, and
my next two weeks at work are literally booked from dawn to dusk. I don't
know when I'll get a chance to look into this again. Hopefully someone else
on the list can offer some suggestions.

Darren

···

On Sunday 11 June 2006 7:22 pm, Wolfgang wrote:

Hi,

with some manual adjustments in texmanager.py I get the first tex file
processed to an dvi and both files (tex + dvi) are copied into this folder:
C:\Documents and Settings\s0167070\.matplotlib\tex.cache

but now dvipng refuses to do its job:

     if exit_status: raise RuntimeError('dvipng was not able to \
RuntimeError: dvipng was not able to process the flowing file:
C:\Documents and
Settings\s0167070\.matplotlib\tex.cache\3bb1bc57100b0c65915bdda3a1f60dae.dv
i Here is the full report generated by dvipng:

Settings\s0167070\.matplotlib\tex.cache\3bb1bc57100b0c65915bdda3a1f60dae.dv
i": No such file or directory

It seems that the spaces in the temp path produce the error. Is there a
way to change the temp dir (beneath in system settings of XP)?

Thanks
Wolfgang

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Darren S. Dale, Ph.D.
dd55@...163...

Hi Darren,

I will try to change my temp path later this day. But I also think, that one problem comes from the fact that I have installed Python not on my C: drive.

Wolfgang

Darren Dale schrieb:

···

I'm sorry Wolfgang, but I don't have access to a windows computer at home, and my next two weeks at work are literally booked from dawn to dusk. I don't know when I'll get a chance to look into this again. Hopefully someone else on the list can offer some suggestions.

Darren

On Sunday 11 June 2006 7:22 pm, Wolfgang wrote:

Hi,

with some manual adjustments in texmanager.py I get the first tex file
processed to an dvi and both files (tex + dvi) are copied into this folder:
C:\Documents and Settings\s0167070\.matplotlib\tex.cache

but now dvipng refuses to do its job:

     if exit_status: raise RuntimeError('dvipng was not able to \
RuntimeError: dvipng was not able to process the flowing file:
C:\Documents and
Settings\s0167070\.matplotlib\tex.cache\3bb1bc57100b0c65915bdda3a1f60dae.dv
i Here is the full report generated by dvipng:

Settings\s0167070\.matplotlib\tex.cache\3bb1bc57100b0c65915bdda3a1f60dae.dv
i": No such file or directory

It seems that the spaces in the temp path produce the error. Is there a
way to change the temp dir (beneath in system settings of XP)?

Thanks
Wolfgang

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Finally I changed in matplotlib/__init__.py the evaluation of $HOME to a path without spaces because all files are transfered to $HOME.matplotlib/tex.cache/ instead of $TEMP

I also had to change in texmanager.py some of the "%s" to %s

I think someone with more experience in programming should check the path handling on windows (regarding to spaces in the path)

I would also suggest that temporary files go into a path which is based on $TMP.

Wolfgang

Which LaTeX distribution are you using on windows? TexLive handles
paths much more poorly than MikTeX.

···

On 6/12/06, Wolfgang <wollez@...361...> wrote:

Finally I changed in matplotlib/__init__.py the evaluation of $HOME to a
path without spaces because all files are transfered to
$HOME.matplotlib/tex.cache/ instead of $TEMP

I also had to change in texmanager.py some of the "%s" to %s

I think someone with more experience in programming should check the
path handling on windows (regarding to spaces in the path)

I would also suggest that temporary files go into a path which is based
on $TMP.

Wolfgang

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I have Miktex running. But finally dvipng had problems with the path which included spaces.

Wolfgang

Ryan Krauss schrieb:

···

Which LaTeX distribution are you using on windows? TexLive handles
paths much more poorly than MikTeX.

On 6/12/06, Wolfgang <wollez@...361...> wrote:

Finally I changed in matplotlib/__init__.py the evaluation of $HOME to a
path without spaces because all files are transfered to
$HOME.matplotlib/tex.cache/ instead of $TEMP

I also had to change in texmanager.py some of the "%s" to %s

I think someone with more experience in programming should check the
path handling on windows (regarding to spaces in the path)

I would also suggest that temporary files go into a path which is based
on $TMP.

Wolfgang

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Part of the problem is that DOS doesnt allow the semicolon to delimit multiple
commands. I made a little bit of progress by changing every 'cd "%s"; ...'
to 'cd "%s" & ...'. At that point, dvipng starts complaining about the
dvifile not existing. The frustrating part is that I can copy that exact
command into a dos prompt and dvipng processes the dvi file just fine. I'm
about ready to plead insanity.

···

On Monday 12 June 2006 08:55, Wolfgang wrote:

I have Miktex running. But finally dvipng had problems with the path
which included spaces.

Wolfgang

Ryan Krauss schrieb:
> Which LaTeX distribution are you using on windows? TexLive handles
> paths much more poorly than MikTeX.
>
> On 6/12/06, Wolfgang <wollez@...361...> wrote:
>> Finally I changed in matplotlib/__init__.py the evaluation of $HOME to a
>> path without spaces because all files are transfered to
>> $HOME.matplotlib/tex.cache/ instead of $TEMP
>>
>> I also had to change in texmanager.py some of the "%s" to %s
>>
>> I think someone with more experience in programming should check the
>> path handling on windows (regarding to spaces in the path)
>>
>> I would also suggest that temporary files go into a path which is based
>> on $TMP.
>>
>> Wolfgang
>>
>>
>>
>> _______________________________________________
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Darren S. Dale, Ph.D.
Cornell High Energy Synchrotron Source
Cornell University
200L Wilson Lab
Rt. 366 & Pine Tree Road
Ithaca, NY 14853

dd55@...163...
office: (607) 255-9894
fax: (607) 255-9001

Hello Darren,

the & is also in my solution! and I always had to change "%s" to %s
and I also added a 'c:' before the cd because " cd c:\temp\ " is not working when the command is starten from d:

so finally I have:
  c: & cd %s & latex -interaction=nonstopmode %s ...

But I thinks this is not enough to get dvipng working, so I've changed the $HOME to a path without spaces.

Wolfgang

If you wan't I can mail you the files which I've changed.

Darren Dale schrieb:

···

Part of the problem is that DOS doesnt allow the semicolon to delimit multiple commands. I made a little bit of progress by changing every 'cd "%s"; ...' to 'cd "%s" & ...'. At that point, dvipng starts complaining about the dvifile not existing. The frustrating part is that I can copy that exact command into a dos prompt and dvipng processes the dvi file just fine. I'm about ready to plead insanity.

On Monday 12 June 2006 08:55, Wolfgang wrote:

I have Miktex running. But finally dvipng had problems with the path
which included spaces.

Wolfgang

Ryan Krauss schrieb:

Which LaTeX distribution are you using on windows? TexLive handles
paths much more poorly than MikTeX.

On 6/12/06, Wolfgang <wollez@...361...> wrote:

Finally I changed in matplotlib/__init__.py the evaluation of $HOME to a
path without spaces because all files are transfered to
$HOME.matplotlib/tex.cache/ instead of $TEMP

I also had to change in texmanager.py some of the "%s" to %s

I think someone with more experience in programming should check the
path handling on windows (regarding to spaces in the path)

I would also suggest that temporary files go into a path which is based
on $TMP.

Wolfgang

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I'm attaching two files. They should overwrite the existing texmanager file in
site-packages/matplotlib and the backend_ps file in
site-packages/matplotlib/backends. I would appreciate it if some windows
users trying to get usetex working with mpl-0.87.3 would test these. I'm
really surprised at all this trouble, I guess I've become very far removed
from the windows experience. I dug a windows harddisk out of the back of my
closet and was able to get usetex working with a standard windows XP setup,
so there should be no need to change your $HOME or anything like that.

Thanks,
Darren

backend_ps.py (52.1 KB)

texmanager.py (16.7 KB)

···

On Monday 12 June 2006 10:34, Wolfgang wrote:

Hello Darren,

the & is also in my solution! and I always had to change "%s" to %s
and I also added a 'c:' before the cd because " cd c:\temp\ " is not
working when the command is starten from d:

so finally I have:
  c: & cd %s & latex -interaction=nonstopmode %s ...

But I thinks this is not enough to get dvipng working, so I've changed
the $HOME to a path without spaces.

Wolfgang

If you wan't I can mail you the files which I've changed.

Darren Dale schrieb:
> Part of the problem is that DOS doesnt allow the semicolon to delimit
> multiple commands. I made a little bit of progress by changing every 'cd
> "%s"; ...' to 'cd "%s" & ...'. At that point, dvipng starts complaining
> about the dvifile not existing. The frustrating part is that I can copy
> that exact command into a dos prompt and dvipng processes the dvi file
> just fine. I'm about ready to plead insanity.
>
> On Monday 12 June 2006 08:55, Wolfgang wrote:
>> I have Miktex running. But finally dvipng had problems with the path
>> which included spaces.
>>
>> Wolfgang
>>
>> Ryan Krauss schrieb:
>>> Which LaTeX distribution are you using on windows? TexLive handles
>>> paths much more poorly than MikTeX.
>>>
>>> On 6/12/06, Wolfgang <wollez@...361...> wrote:
>>>> Finally I changed in matplotlib/__init__.py the evaluation of $HOME to
>>>> a path without spaces because all files are transfered to
>>>> $HOME.matplotlib/tex.cache/ instead of $TEMP
>>>>
>>>> I also had to change in texmanager.py some of the "%s" to %s
>>>>
>>>> I think someone with more experience in programming should check the
>>>> path handling on windows (regarding to spaces in the path)
>>>>
>>>> I would also suggest that temporary files go into a path which is
>>>> based on $TMP.
>>>>
>>>> Wolfgang

Hi,

I've changed back all my changes but:

  if exit_status: raise RuntimeError('dvipng was not able to \
RuntimeError: dvipng was not able to process the flowing file:
C:\Documents and Settings\s0167070\.matplotlib\tex.cache\3bb1bc57100b0c65915bdda3a1f60dae.dvi
Here is the full report generated by dvipng:

3bb1bc57100b0c65915bdda3a1f60dae.dvi: No such file or directory

full annoying output:

>pythonw -u "tex.py"
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\__init__.py:947: UserWarning: Bad val "free" on line #200
  "image.aspect : free # free | preserve"
  in file "C:\Documents and Settings\s0167070\.matplotlib\matplotlibrc"
  not a valid aspect specification
   warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s' % (
loaded rc file C:\Documents and Settings\s0167070\.matplotlib\matplotlibrc
matplotlib version 0.87.3
verbose.level debug-annoying
interactive is False
platform is win32
loaded modules: ['_bisect', 'distutils', 'random', 'datetime', 'matplotlib.tempfile', 'distutils.sysconfig', 'pytz.datetime', 'distutils.dep_util', 'tempfile', 'imp', 'zipimport', 'string', 'matplotlib.__future__', 'pytz.tzinfo', 'distutils.re', 'bisect', 'signal', 'matplotlib.pytz', 'distutils.log', 'locale', 'encodings', 'dateutil', 'matplotlib.warnings', 'matplotlib.sys', 're', 'ntpath', 'new', 'math', 'UserDict', 'distutils.os', 'matplotlib', 'codecs', 'md5', '_locale', 'matplotlib.os', 'thread', 'sre', 'pkg_resources', 'itertools', 'distutils.spawn', 'distutils.sys', 'os', '__future__', '_sre', '__builtin__', 'matplotlib.re', 'distutils.util', 'distutils.string', 'matplotlib.datetime', 'errno', 'binascii', 'sre_constants', 'matplotlib.md5', 'types', 'pytz.sys', '_codecs', 'encodings.cp1252', 'pytz', 'matplotlib.dateutil', 'encodings.aliases', 'exceptions', 'sre_parse', 'pytz.bisect', 'distutils.distutils', 'copy_reg', 'sre_compile', '_random', 'site', '__main__', 'shutil', 'strop', 'encodings.codecs', 'encodings.exceptions', 'nt', 'pytz.sets', 'stat', 'matplotlib.toolkits', 'warnings', 'encodings.types', 'time', 'sys', 'os.path', 'matplotlib.distutils', 'distutils.errors', 'linecache', 'matplotlib.shutil', 'sets']
numerix numpy 0.9.8
font search path ['D:\\Programme\\Python2.4.3\\lib\\site-packages\\matplotlib-0.87.3-py2.4-win32.egg\\matplotlib\\mpl-data']
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\mpl-data\VeraIt.ttf
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\mpl-data\VeraMoIt.ttf
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\mpl-data\cmsy10.ttf
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\mpl-data\VeraMono.ttf
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\mpl-data\VeraBI.ttf
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\mpl-data\VeraSe.ttf
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\mpl-data\VeraMoBI.ttf
trying fontname D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\mpl-data\Vera.ttf
$HOME=C:\Documents and Settings\s0167070
CONFIGDIR=C:\Documents and Settings\s0167070\.matplotlib
loaded ttfcache file C:\Documents and Settings\s0167070\.matplotlib\ttffont.cache
matplotlib data path D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\mpl-data
Could not load matplotlib icon: Das Format der Bilddatei �D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\mpl-data\matplotlib.svg� konnte nicht erkannt werden
backend GTKAgg version 2.8.6
FigureCanvasAgg.draw
RendererAgg.__init__
RendererAgg.__init__ width=640.0, height=480.0
RendererAgg.__init__ _RendererAgg done
RendererAgg.__init__ done
RendererAgg._get_agg_font
  findfont failed Lucida Grande
  findfont found Verdana, normal, normal 500, normal, 12.0
findfont returning c:\windows\fonts\verdana.ttf
cd C:\Documents and Settings\s0167070\.matplotlib\tex.cache & dvipng -bg Transparent -D 80.0 -T tight -o fbf582591f6e1f6319e619b944c658dc.png 3bb1bc57100b0c65915bdda3a1f60dae.dvi
Traceback (most recent call last):
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\backends\backend_gtk.py", line 283, in expose_event
     self._render_figure(self._pixmap, w, h)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\backends\backend_gtkagg.py", line 72, in _render_figure
     FigureCanvasAgg.draw(self)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\backends\backend_agg.py", line 389, in draw
     self.figure.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\figure.py", line 531, in draw
     for a in self.axes: a.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\axes.py", line 1034, in draw
     a.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\axis.py", line 561, in draw
     tick.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\axis.py", line 161, in draw
     if self.label1On: self.label1.draw(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\text.py", line 1167, in draw
     Text.draw(self, renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\text.py", line 339, in draw
     bbox, info = self._get_layout(renderer)
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\text.py", line 186, in _get_layout
     w,h = renderer.get_text_width_height(
   File "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\backends\backend_agg.py", line 239, in get_text_width_height
     Z = texmanager.get_rgba(s, size, self.dpi.get(), rgb)
   File "D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\texmanager.py", line 409, in get_rgba
     pngfile = self.make_png(tex, fontsize, dpi, force=False)
   File "D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.egg\matplotlib\texmanager.py", line 245, in make_png
     if exit_status: raise RuntimeError('dvipng was not able to \
RuntimeError: dvipng was not able to process the flowing file:
C:\Documents and Settings\s0167070\.matplotlib\tex.cache\3bb1bc57100b0c65915bdda3a1f60dae.dvi
Here is the full report generated by dvipng:

3bb1bc57100b0c65915bdda3a1f60dae.dvi: No such file or directory

This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson

>Exit code: 0 Time: 4.344

Darren Dale schrieb:

···

I'm attaching two files. They should overwrite the existing texmanager file in site-packages/matplotlib and the backend_ps file in site-packages/matplotlib/backends. I would appreciate it if some windows users trying to get usetex working with mpl-0.87.3 would test these. I'm really surprised at all this trouble, I guess I've become very far removed from the windows experience. I dug a windows harddisk out of the back of my closet and was able to get usetex working with a standard windows XP setup, so there should be no need to change your $HOME or anything like that.

Thanks,
Darren

On Monday 12 June 2006 10:34, Wolfgang wrote:

Hello Darren,

the & is also in my solution! and I always had to change "%s" to %s
and I also added a 'c:' before the cd because " cd c:\temp\ " is not
working when the command is starten from d:

so finally I have:
  c: & cd %s & latex -interaction=nonstopmode %s ...

But I thinks this is not enough to get dvipng working, so I've changed
the $HOME to a path without spaces.

Wolfgang

If you wan't I can mail you the files which I've changed.

Darren Dale schrieb:

Part of the problem is that DOS doesnt allow the semicolon to delimit
multiple commands. I made a little bit of progress by changing every 'cd
"%s"; ...' to 'cd "%s" & ...'. At that point, dvipng starts complaining
about the dvifile not existing. The frustrating part is that I can copy
that exact command into a dos prompt and dvipng processes the dvi file
just fine. I'm about ready to plead insanity.

On Monday 12 June 2006 08:55, Wolfgang wrote:

I have Miktex running. But finally dvipng had problems with the path
which included spaces.

Wolfgang

Ryan Krauss schrieb:

Which LaTeX distribution are you using on windows? TexLive handles
paths much more poorly than MikTeX.

On 6/12/06, Wolfgang <wollez@...361...> wrote:

Finally I changed in matplotlib/__init__.py the evaluation of $HOME to
a path without spaces because all files are transfered to
$HOME.matplotlib/tex.cache/ instead of $TEMP

I also had to change in texmanager.py some of the "%s" to %s

I think someone with more experience in programming should check the
path handling on windows (regarding to spaces in the path)

I would also suggest that temporary files go into a path which is
based on $TMP.

Wolfgang

------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I have a little time and am trying to fix this bug.

Wolfgang, would you try running the following:

import os
from tempfile import gettempdir
os.system('cd %s & latex -help'% gettempdir())

If that doesnt work, than I need to pass an absolute path/eps_filename to
\includegraphics. The problem is that on windows, the TEMP environment
variable is something like 'C:\\Documents and Settings\\Darren\\Local
Settings\\Temp' or 'C:\\DOCUME~1\\Darren\\LOCALS~1\\TEMP', and
\includegraphics is not able to deal with filenames that have spaces or
tildes (this has been declared a feature, not a bug).

I need advice from some of the mpl gurus. If I can't do the os.system('cd ...)
trick, should I request that windows users either change their temp
environment variable to something like c:\temp, should I request that they
make a new environment variable called mpltemp, or should I just process the
file in the current directory?

Thanks,
Darren

···

On Monday 12 June 2006 13:18, Wolfgang wrote:

Hi,

I've changed back all my changes but:

  if exit_status: raise RuntimeError('dvipng was not able to \
RuntimeError: dvipng was not able to process the flowing file:
C:\Documents and
Settings\s0167070\.matplotlib\tex.cache\3bb1bc57100b0c65915bdda3a1f60dae.dv
i Here is the full report generated by dvipng:

3bb1bc57100b0c65915bdda3a1f60dae.dvi: No such file or directory

full annoying output:
>pythonw -u "tex.py"

D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.eg
g\matplotlib\__init__.py:947: UserWarning: Bad val "free" on line #200
  "image.aspect : free # free | preserve"
  in file "C:\Documents and Settings\s0167070\.matplotlib\matplotlibrc"
  not a valid aspect specification
   warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file
"%s"\n\t%s' % (
loaded rc file C:\Documents and Settings\s0167070\.matplotlib\matplotlibrc
matplotlib version 0.87.3
verbose.level debug-annoying
interactive is False
platform is win32
loaded modules: ['_bisect', 'distutils', 'random', 'datetime',
'matplotlib.tempfile', 'distutils.sysconfig', 'pytz.datetime',
'distutils.dep_util', 'tempfile', 'imp', 'zipimport', 'string',
'matplotlib.__future__', 'pytz.tzinfo', 'distutils.re', 'bisect',
'signal', 'matplotlib.pytz', 'distutils.log', 'locale', 'encodings',
'dateutil', 'matplotlib.warnings', 'matplotlib.sys', 're', 'ntpath',
'new', 'math', 'UserDict', 'distutils.os', 'matplotlib', 'codecs',
'md5', '_locale', 'matplotlib.os', 'thread', 'sre', 'pkg_resources',
'itertools', 'distutils.spawn', 'distutils.sys', 'os', '__future__',
'_sre', '__builtin__', 'matplotlib.re', 'distutils.util',
'distutils.string', 'matplotlib.datetime', 'errno', 'binascii',
'sre_constants', 'matplotlib.md5', 'types', 'pytz.sys', '_codecs',
'encodings.cp1252', 'pytz', 'matplotlib.dateutil', 'encodings.aliases',
'exceptions', 'sre_parse', 'pytz.bisect', 'distutils.distutils',
'copy_reg', 'sre_compile', '_random', 'site', '__main__', 'shutil',
'strop', 'encodings.codecs', 'encodings.exceptions', 'nt', 'pytz.sets',
'stat', 'matplotlib.toolkits', 'warnings', 'encodings.types', 'time',
'sys', 'os.path', 'matplotlib.distutils', 'distutils.errors',
'linecache', 'matplotlib.shutil', 'sets']
numerix numpy 0.9.8
font search path
['D:\\Programme\\Python2.4.3\\lib\\site-packages\\matplotlib-0.87.3-py2.4-w
in32.egg\\matplotlib\\mpl-data'] trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.eg
g\matplotlib\mpl-data\VeraIt.ttf trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.eg
g\matplotlib\mpl-data\VeraMoIt.ttf trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.eg
g\matplotlib\mpl-data\cmsy10.ttf trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.eg
g\matplotlib\mpl-data\VeraMono.ttf trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.eg
g\matplotlib\mpl-data\VeraBI.ttf trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.eg
g\matplotlib\mpl-data\VeraSe.ttf trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.eg
g\matplotlib\mpl-data\VeraMoBI.ttf trying fontname
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.eg
g\matplotlib\mpl-data\Vera.ttf $HOME=C:\Documents and Settings\s0167070
CONFIGDIR=C:\Documents and Settings\s0167070\.matplotlib
loaded ttfcache file C:\Documents and
Settings\s0167070\.matplotlib\ttffont.cache
matplotlib data path
D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.eg
g\matplotlib\mpl-data Could not load matplotlib icon: Das Format der
Bilddatei
»D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\mpl-data\matplotlib.svg« konnte nicht erkannt werden
backend GTKAgg version 2.8.6
FigureCanvasAgg.draw
RendererAgg.__init__
RendererAgg.__init__ width=640.0, height=480.0
RendererAgg.__init__ _RendererAgg done
RendererAgg.__init__ done
RendererAgg._get_agg_font
  findfont failed Lucida Grande
  findfont found Verdana, normal, normal 500, normal, 12.0
findfont returning c:\windows\fonts\verdana.ttf
cd C:\Documents and Settings\s0167070\.matplotlib\tex.cache & dvipng -bg
Transparent -D 80.0 -T tight -o fbf582591f6e1f6319e619b944c658dc.png
3bb1bc57100b0c65915bdda3a1f60dae.dvi
Traceback (most recent call last):
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\backends\backend_gtk.py", line 283, in expose_event
     self._render_figure(self._pixmap, w, h)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\backends\backend_gtkagg.py", line 72, in _render_figure
     FigureCanvasAgg.draw(self)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\backends\backend_agg.py", line 389, in draw
     self.figure.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\figure.py", line 531, in draw
     for a in self.axes: a.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\axes.py", line 1034, in draw
     a.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\axis.py", line 561, in draw
     tick.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\axis.py", line 161, in draw
     if self.label1On: self.label1.draw(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\text.py", line 1167, in draw
     Text.draw(self, renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\text.py", line 339, in draw
     bbox, info = self._get_layout(renderer)
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\text.py", line 186, in _get_layout
     w,h = renderer.get_text_width_height(
   File
"d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\backends\backend_agg.py", line 239, in get_text_width_height
     Z = texmanager.get_rgba(s, size, self.dpi.get(), rgb)
   File
"D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\texmanager.py", line 409, in get_rgba
     pngfile = self.make_png(tex, fontsize, dpi, force=False)
   File
"D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.e
gg\matplotlib\texmanager.py", line 245, in make_png
     if exit_status: raise RuntimeError('dvipng was not able to \
RuntimeError: dvipng was not able to process the flowing file:
C:\Documents and
Settings\s0167070\.matplotlib\tex.cache\3bb1bc57100b0c65915bdda3a1f60dae.dv
i Here is the full report generated by dvipng:

3bb1bc57100b0c65915bdda3a1f60dae.dvi: No such file or directory

This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson

>Exit code: 0 Time: 4.344

Darren Dale schrieb:
> I'm attaching two files. They should overwrite the existing texmanager
> file in site-packages/matplotlib and the backend_ps file in
> site-packages/matplotlib/backends. I would appreciate it if some windows
> users trying to get usetex working with mpl-0.87.3 would test these. I'm
> really surprised at all this trouble, I guess I've become very far
> removed from the windows experience. I dug a windows harddisk out of the
> back of my closet and was able to get usetex working with a standard
> windows XP setup, so there should be no need to change your $HOME or
> anything like that.
>
>
> Thanks,
> Darren
>
> On Monday 12 June 2006 10:34, Wolfgang wrote:
>> Hello Darren,
>>
>> the & is also in my solution! and I always had to change "%s" to %s
>> and I also added a 'c:' before the cd because " cd c:\temp\ " is not
>> working when the command is starten from d:
>>
>> so finally I have:
>> c: & cd %s & latex -interaction=nonstopmode %s ...
>>
>> But I thinks this is not enough to get dvipng working, so I've changed
>> the $HOME to a path without spaces.
>>
>> Wolfgang
>>
>> If you wan't I can mail you the files which I've changed.
>>
>> Darren Dale schrieb:
>>> Part of the problem is that DOS doesnt allow the semicolon to delimit
>>> multiple commands. I made a little bit of progress by changing every
>>> 'cd "%s"; ...' to 'cd "%s" & ...'. At that point, dvipng starts
>>> complaining about the dvifile not existing. The frustrating part is
>>> that I can copy that exact command into a dos prompt and dvipng
>>> processes the dvi file just fine. I'm about ready to plead insanity.
>>>
>>> On Monday 12 June 2006 08:55, Wolfgang wrote:
>>>> I have Miktex running. But finally dvipng had problems with the path
>>>> which included spaces.
>>>>
>>>> Wolfgang
>>>>
>>>> Ryan Krauss schrieb:
>>>>> Which LaTeX distribution are you using on windows? TexLive handles
>>>>> paths much more poorly than MikTeX.
>>>>>
>>>>> On 6/12/06, Wolfgang <wollez@...361...> wrote:
>>>>>> Finally I changed in matplotlib/__init__.py the evaluation of $HOME
>>>>>> to a path without spaces because all files are transfered to
>>>>>> $HOME.matplotlib/tex.cache/ instead of $TEMP
>>>>>>
>>>>>> I also had to change in texmanager.py some of the "%s" to %s
>>>>>>
>>>>>> I think someone with more experience in programming should check the
>>>>>> path handling on windows (regarding to spaces in the path)
>>>>>>
>>>>>> I would also suggest that temporary files go into a path which is
>>>>>> based on $TMP.
>>>>>>
>>>>>> Wolfgang
>>>>>>
>>>>>> --------------------------------------------------------------------
>>>>>>----
>>>>>>
>>>>>> _______________________________________________
>>>>>> Matplotlib-users mailing list
>>>>>> Matplotlib-users@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Darren S. Dale, Ph.D.
Cornell High Energy Synchrotron Source
Cornell University
200L Wilson Lab
Rt. 366 & Pine Tree Road
Ithaca, NY 14853

dd55@...163...
office: (607) 255-9894
fax: (607) 255-9001

Wolfgang,

Will you please try using these new files? I think they should solve the
problems you were having. Please post some feedback as soon as possible.
Thanks.

Darren

texmanager.py (12.5 KB)

backend_ps.py (51.2 KB)

···

On Monday 12 June 2006 1:18 pm, Wolfgang wrote:

Hi,

I've changed back all my changes but:

  if exit_status: raise RuntimeError('dvipng was not able to \
RuntimeError: dvipng was not able to process the flowing file:
C:\Documents and
Settings\s0167070\.matplotlib\tex.cache\3bb1bc57100b0c65915bdda3a1f60dae.dv
i Here is the full report generated by dvipng: