savefig
Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript.
Author: Peder Axensten
Phenomenal effort here!! I had been trying to figure out how to do this for months.
One bug that I had to fix:
I am running Mac OS X V10.6.8. In the code, the "Switch computer" (Line 205) was reading MACI64. I had to change the the resulting case to include this option. Specifically, I appended Line 206 to read: "case {'MAC','MACI64'}, gs= '/usr/local/bin/gs';".