I can't save bar plot pdf image using export_fig
command since I moved to Matlab R2014a.
If I do
var = 1:10
plot(var)
export_fig var.pdf
it works perfectly, while with
bar(var)
export_fig var.pdf
I got
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 is installed (version 9.10) on my machine (Ubuntu 14.04). Any idea?
Thanks