changeset 143:125c51e4dca8

Added function to set alla font sizes of a figure. Added default dpi to savepng.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 14 Mar 2016 13:52:37 +0100
parents 484b48e95c83
children 2fe13db674da
files savepng.m setFontSize.m
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/savepng.m	Mon Feb 29 15:00:52 2016 +0100
+++ b/savepng.m	Mon Mar 14 13:52:37 2016 +0100
@@ -1,4 +1,5 @@
 function savepng(h, filename, dpi)
+    default_arg('dpi', 300)
     print(h,filename,'-dpng',sprintf('-r%d',dpi));
     % Let print size in inches as input parameter
     % Smaller boundingbox
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/setFontSize.m	Mon Mar 14 13:52:37 2016 +0100
@@ -0,0 +1,4 @@
+function setFontSize(fig, pts)
+    default_arg('pts', 16);
+    set(findall(fig,'-property','FontSize'),'FontSize',pts);
+end
\ No newline at end of file