NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/gliderproc/trunk/MATLAB/plots/wysiwyg.m

Revision 495 (checked in by cbc, 12 years ago)

Initial import of Stark code.

Line 
1 %
2 % WYSIWYG Force printed output to be more like what one sees on screen
3 %
4 % WYSIWYG This function is called with no args and merely
5 %         changes the size of the figure on the screen to equal
6 %         the size of the figure that would be printed,
7 %         according to the papersize attribute.  Use this function
8 %         to give a more accurate picture of what will be
9 %         printed.
10 %
11 % Calls: none
12 %
13 %         Dan(K) Braithwaite, Dept. of Hydrology U.of.A  11/93
14  
15 function wysiwyg
16 unis = get(gcf,'units');
17 ppos = get(gcf,'paperposition');
18 set(gcf,'units',get(gcf,'paperunits'));
19 pos = get(gcf,'position');
20 pos(3:4) = ppos(3:4);
21 set(gcf,'position',pos);
22 set(gcf,'units',unis);
23  
Note: See TracBrowser for help on using the browser.