Easy way of saving figures to publication friendly format
properties and default value
'Size',[3.3 2.5] inches
'FontSize',0 fontsize multiplier
'MinFontSize',8 minimum fontsize in pt
'LineWidth',.5 linewidth multiplier
'MinLineWidth',.5 minimum linewidth in pt
'MarkerSize',.5 markersize multiplier
'MinMarkerSize',3 minimum MarkerSize in pt
'Margins',[0 0 0 0] [Left,Right,Top,Bottom] - can be used to set margins (relative units)
. * When using automargins then this will be interpreted as additional margins
. * when a single number is specified then it is used as a multiplier to the tight-inset used for auto margins.
'PrintOptions','' (OBSOLETE! Use Format or file-extension instead)
'Format','png' if not specified then it will be inferred from the filename
hey Aslak, really nice function.
i am able to save it to 600 dpi and all, but in the saved .tif file, the legend box is becoming excessively big with lot of extra whitespace..
apart from this legend thing, everything else works fine..but i need the legend too...
Very nice tool!
Could I save figure in color using saveFigure?
Saved lots of my time. Thanks!
Very very important.
Very useful to someone that wants to save a clean image quickly. I would suggest making the above usage part of the README file.
Thanks a lot, you saved my day!
extreemly useful, AGU should make it known to everyone who uses Matlab for their articles
Fixes for R2014b
Added handling of legends and colorbars.
I submitted an update earlier today, but a major bug sneaked into parseArgs.m ... This has been fixed in this version.
Included a version of the routine that works in older versions of matlab.
+fixed a minor bug related to outputs.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.