Matlab 2014a export_fig eps2pdf错误

时间:2015-04-17 14:09:35

标签: matlab ubuntu-14.04 ghostscript

自从我转到Matlab R2014a后,我无法使用export_fig command保存条形图pdf图像。

如果我这样做

var = 1:10
plot(var)
export_fig var.pdf

完美无缺,而

bar(var)
export_fig var.pdf

我得到了

xport LD_LIBRARY_PATH=""; "gs" -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile="ciao.pdf" -dEPSCrop -sFONTPATH="/usr/share/fonts:/usr/local/share/fonts:/usr/share/fonts/X11:/usr/local/share/fonts/X11:/usr/share/fonts/truetype:/usr/local/share/fonts/truetype" -f "/tmp/tp26894836_5c0b_4ec9_a6de_9ab69d81f8ba.eps": Segmentation fault
/bin/bash: line 1: 28694 Segmentation fault      (core dumped) "gs" -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile="var.pdf" -dEPSCrop -f "/tmp/tp26894836_5c0b_4ec9_a6de_9ab69d81f8ba.eps"
export LD_LIBRARY_PATH=""; "gs" -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile="var.pdf" -dEPSCrop -f "/tmp/tp26894836_5c0b_4ec9_a6de_9ab69d81f8ba.eps": Segmentation fault
Ghostscript error: perhaps var.pdf is open by some other application
export_fig error. Please ensure:
that you are using the latest version of export_fig
and that you have Ghostscript installed
and that you do not have multiple versions of export_fig installed by mistake
and that you did not made a mistake in the expected input arguments

If the problem persists, then please report a new issue.

Error using eps2pdf (line 149)
/bin/bash: line 1: 28689 Segmentation fault      (core dumped) "gs" -q   -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile="var.pdf" -dEPSCrop
-sFONTPATH="/usr/share/fonts:/usr/local/share/fonts:/usr/share/fonts/X11:/usr/local/share/fonts/X11:/usr/share/fonts/truetype:/usr/local/share/fonts/truetype" -f
"/tmp/tp26894836_5c0b_4ec9_a6de_9ab69d81f8ba.eps"


Error in export_fig (line 588)
            eps2pdf(tmp_nam, pdf_nam, 1, options.append, options.colourspace==2, options.quality, options.gs_options);

在我的机器上安装了Ghostscript(版本9.10)(Ubuntu 14.04)。 有什么想法吗?

由于

0 个答案:

没有答案