Rank: 262645 based on 0 downloads (last 30 days) and 0 file submitted
photo

Jannik

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Jannik
Updated File Comments Rating
26 Jun 2013 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford

I also get a ghostscript error:

Error: /undefined in --definefont--
Operand stack:
mwa_cmmi10 --dict:11/20(L)-- Font definefont --dict:30/32(L)-- unknownerror
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- --nostringval-- --nostringval-- false 1
%stopped_push 1900 1 3 %oparray_pop 1899 1 3 %oparray_pop --nostringval--
1883 1 3 %oparray_pop 1771 1 3 %oparray_pop --nostringval--
%errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- 1762 2 3 %oparray_pop --nostringval--
--nostringval-- 1850 2 4 %oparray_pop --nostringval--
Dictionary stack:
--dict:1173/1684(ro)(G)-- --dict:0/20(G)-- --dict:82/200(L)--
--dict:1173/1684(ro)(G)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.07: Unrecoverable error, exit code 1

when using export_fig with Matlab 2013a and ArchLinux.
I solved this issue by clearing the LD_LIBRARY_PATH enviroment variable before executing gs by replacing

system(sprintf('"%s" %s', gs_path, cmd));

with

system(sprintf('export LD_LIBRARY_PATH=""; "%s" %s', gs_path, cmd));

in the ghostscript.m file. Maybe this will help in case of other ghostscript issues as well.

Contact us