savefig(epsfilename) Bug on XP
Dear matplotlib XP users,
I am battling with matplotlib and LaTeX for text handeling.
I am running Windows XP, python 2.3.5, matplotlib-0.83.2. … and MiKTeX…
With the WXAgg backend I don’t see any text at all in any window, with:
text.usetex : True
In my matplotlibrc file…
With PS backend with no show() line and a savefig(epsfilename) line, I got the following error:
…
IOError: [Errno 2] No such file or directory: ‘890ab9460a8ecc8327114aa4d5689212.eps’
I changed line 1097 in backend_ps.py to read:
command = 'gswin32c -dBATCH -dNOPAUSE -dSAFER -r%d \
instead of:
command = 'gs -dBATCH -dNOPAUSE -dSAFER -r%d \
Now at leas it writes the eps file, but GSView gives the following error:
Unrecoverable error: configurationerror in setpagedevice
Operand stack:
false --nostringval--
Failed to open device or install ViewerPreProcess hook: returns -26
I then tried to see if savefig(psfilename) would work, but now I get the error:
IOError: [Errno 2] No such file or directory: ‘5cdf9668d6b377717ccafe1ddfbafb10.ps’
Probable indicating an error with the ‘dvips’ command… ?
Any ideas on what to do… I’ll leave it till Monday morning…
Kind regards and enjoy the weekend
Peter-Jan Randewijk
Senior Lektor - Drywingselektronika & Elektriese Aandrywing
-oOOOOOOOOOOOOOOOOOOOOOOOOOOo-
Departement E&E. Ingenieurswese - E313
Universiteit Stellenbosch
Privaatsak X1
Matieland, 7603
Suid-Afrika
Tel: +27 (0) 21 808 4457 (w)
Faks: +27 (0) 21 808 3951 (w)
Tel: +27 (0) 21 883 8592 (h)
Sel: +27 (0) 83 556 5809 (h)
Epos: pjrandew@...841... (w)
-oOOOOOOOOOOOOOOOOOOOOOOOOOOo-