1 |
function wysiwyg |
2 |
%WYSIWYG -- this function is called with no args and merely |
3 |
% changes the size of the figure on the screen to equal |
4 |
% the size of the figure that would be printed, |
5 |
% according to the papersize attribute. Use this function |
6 |
% to give a more accurate picture of what will be |
7 |
% printed. |
8 |
% Dan(K) Braithwaite, Dept. of Hydrology U.of.A 11/93 |
9 |
|
10 |
unis = get(gcf,'units'); |
11 |
ppos = get(gcf,'paperposition'); |
12 |
set(gcf,'units',get(gcf,'paperunits')); |
13 |
pos = get(gcf,'position'); |
14 |
pos(3:4) = ppos(3:4); |
15 |
set(gcf,'position',pos); |
16 |
set(gcf,'units',unis); |
17 |
|