Changeset 2624


Ignore:
Timestamp:
11/06/09 15:14:59 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added frame for Eric

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/printmodel.m

    r2623 r2624  
    1010fig=gcf;
    1111
    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
    1413set(fig, 'PaperPositionMode', 'auto');
    1514
    1615%Use higher resolution to anti-alias and use zbuffer to have smooth colors
    1716print(fig, '-zbuffer', ['-r' num2str(get(0,'ScreenPixelsPerInch')*2)], ['-d' format],filename);
     17
     18%Add frame except if pdf
     19if ~strcmpi(format,'pdf'),
     20        system(['convert -border 1x1 -bordercolor "#000000" ' filename ' ' filename ]);
     21end
Note: See TracChangeset for help on using the changeset viewer.