Like Matlab's saveas.m, but better:
- Print figures as pdf in their correct dimensions (and not on A4 paper like Matlab does).
- If you prefer, you can specify the size of the printed pdf, independent of its size on screen.
- Optionally increase line thickness and font size for better readability.
- Optionally set figure background color to transparent for use in presentations.
saveaspdf; % Saves 'A sine.pdf' on your Desktop