I wanted to try to usetex for my matplotlib plots, and thought that I
had everything neccessary installed, but it doesn`t work. Perhaps
someone in the group have some idea what is wrong here? Im using
MikTex on xp and have the dvipng-miktex pakage installed. thx
File "C:\\Python23\\lib\\site-packages\\matplotlib\\text.py", line
334, in draw
bbox, info = self._get_layout(renderer)
File "C:\\Python23\\lib\\site-packages\\matplotlib\\text.py", line
179, in _get_layout
w,h = renderer.get_text_width_height(
File "C:\\Python23\\lib\\site-packages\\matplotlib\\backends\\backend_agg.py",
line 237, in get_text_width_height
Z = self.texmanager.get_rgba(s, size, dpi, rgb)
File "C:\\Python23\\lib\\site-packages\\matplotlib\\texmanager.py",
line 276, in get_rgba
pngfile = self.make_png(tex, dpi, force=False)
File "C:\\Python23\\lib\\site-packages\\matplotlib\\texmanager.py",
line 113, in make_png
dvifile = self.make_dvi(tex)
File "C:\\Python23\\lib\\site-packages\\matplotlib\\texmanager.py",
line 105, in make_dvi
shutil.move(dvitmp, dvifile)
File "C:\\Python23\\lib\\shutil.py", line 174, in move
copy2(src,dst)
File "C:\\Python23\\lib\\shutil.py", line 83, in copy2
copyfile(src, dst)
File "C:\\Python23\\lib\\shutil.py", line 38, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory:
'a8cf192be8520ffec23612a6a3a0ee29.dvi
An intermediate dvi file is missing, probably because the latex executable is
not on your path.
Darren
···
On Wednesday 22 February 2006 7:32 am, Bruce wrote:
Hi group,
I wanted to try to usetex for my matplotlib plots, and thought that I
had everything neccessary installed, but it doesn`t work. Perhaps
someone in the group have some idea what is wrong here? Im using
MikTex on xp and have the dvipng-miktex pakage installed. thx
After upgrading from MPL 0.82 to 0.87 and tried again, the message
from MPL was that I needed tex version 0.31415 or later. I have
0.3141592 and the reason why MPL didn`t find it is described in bugs
on Sourceforge with the title
"Bug with text.usetex = true on WinXP with MiKTeX". So I just edited
__init__.py and latex now seems to work with MPL.
···
On 2/22/06, Darren Dale <dd55@...163...> wrote:
On Wednesday 22 February 2006 7:32 am, Bruce wrote:
> Hi group,
>
> I wanted to try to usetex for my matplotlib plots, and thought that I
> had everything neccessary installed, but it doesn`t work. Perhaps
> someone in the group have some idea what is wrong here? Im using
> MikTex on xp and have the dvipng-miktex pakage installed. thx
An intermediate dvi file is missing, probably because the latex executable is
not on your path.
Darren
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net matplotlib-users List Signup and Options