Changeset 2624
- Timestamp:
- 11/06/09 15:14:59 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/printmodel.m
r2623 r2624 10 10 fig=gcf; 11 11 12 %Set the PaperPositionMode property to auto before printing the figure. 13 %http://www.mathworks.com/access/helpdesk/help/techdoc/creating_plots/f3-124745.html 12 %In auto mode, MATLAB prints the figure the same size as it appears on the computer screen, centered on the page 14 13 set(fig, 'PaperPositionMode', 'auto'); 15 14 16 15 %Use higher resolution to anti-alias and use zbuffer to have smooth colors 17 16 print(fig, '-zbuffer', ['-r' num2str(get(0,'ScreenPixelsPerInch')*2)], ['-d' format],filename); 17 18 %Add frame except if pdf 19 if ~strcmpi(format,'pdf'), 20 system(['convert -border 1x1 -bordercolor "#000000" ' filename ' ' filename ]); 21 end
Note:
See TracChangeset
for help on using the changeset viewer.