Mercurial > repos > public > sbplib
comparison savepng.m @ 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 | 7e7f90e4954e |
children | b4ae78a1c2b9 |
comparison
equal
deleted
inserted
replaced
142:484b48e95c83 | 143:125c51e4dca8 |
---|---|
1 function savepng(h, filename, dpi) | 1 function savepng(h, filename, dpi) |
2 default_arg('dpi', 300) | |
2 print(h,filename,'-dpng',sprintf('-r%d',dpi)); | 3 print(h,filename,'-dpng',sprintf('-r%d',dpi)); |
3 % Let print size in inches as input parameter | 4 % Let print size in inches as input parameter |
4 % Smaller boundingbox | 5 % Smaller boundingbox |
5 end | 6 end |