Created
September 5, 2014 14:07
-
-
Save kmundnic/e29a454ef4f240a56b17 to your computer and use it in GitHub Desktop.
Resize and save MATLAB plots in SVG format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plot(data,'k'); | |
rect = [0 0 1080 270]; % Resize to 4:1 | |
set(gcf, 'OuterPosition', rect); | |
r = 150; % pixels per inch | |
set(gcf, 'PaperPosition', rect/r); | |
plot2svg('Figures/plot.svg'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment