Index: /issm/trunk/src/m/classes/public/printmodel.m
===================================================================
--- /issm/trunk/src/m/classes/public/printmodel.m	(revision 2623)
+++ /issm/trunk/src/m/classes/public/printmodel.m	(revision 2624)
@@ -10,8 +10,12 @@
 fig=gcf;
 
-%Set the PaperPositionMode property to auto before printing the figure.
-%http://www.mathworks.com/access/helpdesk/help/techdoc/creating_plots/f3-124745.html
+%In auto mode, MATLAB prints the figure the same size as it appears on the computer screen, centered on the page
 set(fig, 'PaperPositionMode', 'auto');
 
 %Use higher resolution to anti-alias and use zbuffer to have smooth colors
 print(fig, '-zbuffer', ['-r' num2str(get(0,'ScreenPixelsPerInch')*2)], ['-d' format],filename);
+
+%Add frame except if pdf
+if ~strcmpi(format,'pdf'),
+	system(['convert -border 1x1 -bordercolor "#000000" ' filename ' ' filename ]);
+end
