Re: [Matplotlib-users] tex-text problem

2006-06-27 Thread Darren Dale
Ok, usetex is going to do postscript processing in the user's current directory, but only on windows. On other platforms, the work is done in a temp directory. I've tested my changes on linux and windows, and committed them to svn as of 2528. Feedback appreciated. Darren On Tuesday 27 June 20

Re: [Matplotlib-users] tex-text problem

2006-06-27 Thread Darren Dale
On Tuesday 27 June 2006 09:14, Jouni K Seppanen wrote: > Darren Dale <[EMAIL PROTECTED]> writes: > > 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 > >

Re: [Matplotlib-users] tex-text problem

2006-06-27 Thread Jouni K Seppanen
Darren Dale <[EMAIL PROTECTED]> writes: > 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 sp

Re: [Matplotlib-users] tex-text problem

2006-06-27 Thread Darren Dale
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

Re: [Matplotlib-users] tex-text problem

2006-06-12 Thread 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

Re: [Matplotlib-users] tex-text problem

2006-06-12 Thread Wolfgang
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 eno

Re: [Matplotlib-users] tex-text problem

2006-06-12 Thread Darren Dale
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 exac

Re: [Matplotlib-users] tex-text problem

2006-06-12 Thread Wolfgang
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 <[EMAIL PROTECTED]> wrote: >> Finally I

Re: [Matplotlib-users] tex-text problem

2006-06-12 Thread Ryan Krauss
Which LaTeX distribution are you using on windows? TexLive handles paths much more poorly than MikTeX. On 6/12/06, Wolfgang <[EMAIL PROTECTED]> wrote: > Finally I changed in matplotlib/__init__.py the evaluation of $HOME to a > path without spaces because all files are transfered to > $HOME.matpl

Re: [Matplotlib-users] tex-text problem

2006-06-12 Thread Wolfgang
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 c

Re: [Matplotlib-users] tex-text problem

2006-06-11 Thread Wolfgang
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 tw

Re: [Matplotlib-users] tex-text problem

2006-06-11 Thread Darren Dale
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

Re: [Matplotlib-users] tex-text problem

2006-06-11 Thread Wolfgang
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 w

Re: [Matplotlib-users] tex-text problem

2006-06-11 Thread Darren Dale
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"

Re: [Matplotlib-users] tex-text problem

2006-06-11 Thread Wolfgang
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-pack

Re: [Matplotlib-users] tex-text problem

2006-06-11 Thread Darren Dale
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. B

[Matplotlib-users] tex-text problem

2006-06-11 Thread Wolfgang
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 Wi