altmany / export_fig

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

Export fig error EPS file #332

Closed economicsstudent closed 3 years ago

economicsstudent commented 3 years ago

Dear Mr Altmany, Apologies for getting back to you again. Herewith I attach a document created by Matlab to see what could be the matter with Export_fig. The 2014 version and ghostscript have been correctly installed and the graph folder was also in the path. The expected input arguments are correct as far as i am concerned and graphics/data GK folder does exist, is in the path, I have administrator rights and is not open in other applications. Please, what can be the issue?

_export_fig error. Please ensure:
 * that the function you used (C:\Program Files\MATLAB\R2017b\VAR\VAR-Toolbox-main\v3dot0\ExportFig\export_fig.m) version 3.13 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 C:\Program Files\MATLAB\R2017b\VAR\VAR-Toolbox-main\v3dot0\gs9.53.3\bin\gswin32c.exe

If the problem persists, then please report a new issue.
In your report, please upload the problematic EPS file: C:\Users\HP\AppData\Local\Temp\tpfc8d6fbd_3cbc_4eb8_a0a9_88de882788c1.eps (you can then delete this file).

Error using export_fig (line 923)
Could not create graphics/DATA_GK.pdf - perhaps the folder does not exist, or you do not have write permissions, or
the file is open in another application

Error in SaveFigure (line 31)
    export_fig(path,['-' type],'-painters')

Error in VARToolbox_Primer (line 60)
SaveFigure('graphics/DATA_GK',1)_

tpfc8d6fbd_3cbc_4eb8_a0a9_88de882788c1.eps.notebook.txt

altmany commented 3 years ago

I cannot reproduce the error, relative file paths are supported by export_fig. Try to update your export_fig to the latest version and retest. If the problem persists, then try to run a simple command-window command such as export_fig('graphics/DATA_GK/test.pdf') to isolate the problem. In the meantime I'm closing the issue; if you have more information then post it here and I will reopen the issue and investigate what you'll post.