Closed foret37 closed 6 months ago
I am running an earlier version of R2022b with no problem.
Try to add drawnow; pause(0.2);
just before your call to export_fig - perhaps this will resolve the issue
No feedback after a year and the reported problem cannot be reproduced, so closing this issue.
I just installed the latest version of export_fig, and I am running the latest version of Matlab (R2022b, update 5). I ran the first example:
And saveas produced a png of the figure, but export_fig produced a blank png file.
BUT, I found that if I reversed the order of the functions, saveas and export_fig, then both functions produced versions of the fig. My guess is that this problem is due to a change in Matlab, given that this example worked previously.
Update: I found that the inclusion of the figure handle in export_fig solved this problem.
Best, Mark