The error catching is not optimal at the moment for saving PNG figures with "export_fig", and it could better to make a subfunction out of it rather than copy+pasteing at the end of plot functions as now.

Also easier to add some other formats (EPS, SVG, etc.) to autosave within the new subfunction
The error catching is not optimal at the moment for saving PNG figures with "export_fig", and it could better to make a subfunction out of it rather than copy+pasteing at the end of plot functions as now.
Also easier to add some other formats (EPS, SVG, etc.) to autosave within the new subfunction