altmany / export_fig

A MATLAB toolbox for exporting publication quality figures
BSD 3-Clause "New" or "Revised" License
1.27k stars 365 forks source link

Ghostscript doesnt seem to work?? #357

Closed JoAnn-Tan closed 2 years ago

JoAnn-Tan commented 2 years ago

I am trying to get some impulse responses from Matlab but I keep getting this error:

export_fig error. Please ensure:

  • that the function you used ... version 3.27 is from the expected location
  • and that you did not made a mistake in export_fig's expected input arguments
  • and that ghostscript is properly installed in gswin64c.exe

If the problem persists, then please report a new issue. In your report, please upload the problematic EPS file:...

Error using export_fig Could not create graphics/BL_IR_1.pdf - perhaps you do not have write permissions, or the file is open in another application

Error in VARirplot (line 99) export_fig(FigName,'-pdf','-painters')

I am sure that my ghostscript is properly installed, and I did not make a mistake in export_fig's expected input arguments. When I first installed ghostscript the error did not occur and I managed to get the plots I wanted, but the next day when I tried again the error keeps popping up. Please help! Thank you!

altmany commented 2 years ago

As the error message clearly says: Could not create graphics/BL_IR_1.pdf - perhaps you do not have write permissions, or the file is open in another application