Mercurial > repos > public > sbplib
annotate savepng.m @ 211:3c4ffbfbfb84 feature/beams
Merged feature/grid into feature/beams
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 16 Jun 2016 10:56:47 +0200 |
parents | 125c51e4dca8 |
children | b4ae78a1c2b9 |
rev | line source |
---|---|
124 | 1 function savepng(h, filename, dpi) |
143
125c51e4dca8
Added function to set alla font sizes of a figure. Added default dpi to savepng.
Jonatan Werpers <jonatan@werpers.com>
parents:
124
diff
changeset
|
2 default_arg('dpi', 300) |
124 | 3 print(h,filename,'-dpng',sprintf('-r%d',dpi)); |
4 % Let print size in inches as input parameter | |
5 % Smaller boundingbox | |
6 end |