Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript.
Author: Peder Axensten
The auto-crop is a great utility! I highly suggest incorporating a call to something like fix_lines.m inside this function to improve the dotted/dashed lines in the temporary eps file! I wish that the size of exported dotted/dashes in lines was affected by resolution the way it is with the print.m function, but at least fix_lines.m helps improve the dotted/dashed lines some.