|
"Pete" <petematlab@gmail.com> wrote:
> Hello all
> I recently downloaded 'export_fig'
> When I tried to use it, a window appeared asking me to locate where the file ghostscript.m was.
> I pointed it to my working folder where export_fig was, but it wouldn't work.
> I then deleted export_fig and associated files.
>
> Now, when I try to save a figure using 'print -dpdf' I get the following error:
>
> ??? Error using ==> print
> Error using ==> graphics\private\ghostscript
> Problem calling GhostScript. System returned error
>
> I can still use print with other formats, such as deps and dpng, but no longer for pdfs.
>
> Please help - I need to save in pdf format.
Suggestions as to why print isn't working now:
1. You over-wrote some MATLAB functions when you installed export_fig.
2. You deleted some MATLAB functions when you removed export fig.
3. You have not removed some export_fig functions which are interfering with print.
However, I would expect 1 & 2 to be fixed by a reinstall of MATLAB and I have never had a report about export_fig interfering with print, despite 10s of thousands of people using it.
As for export_fig not working, the dialogue box was created by the ghostscript.m file, and was asking where the Ghostscript executable was, not where itself was - unless it was undergoing some existential crisis I don't know about. You need to install the Ghostscript package separately, as explained in the export_fig help text.
Regards,
Oliver
|