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 |
% Dan(K) Braithwaite, Dept. of Hydrology U.of.A 11/93 |
---|
12 |
|
---|
13 |
function wysiwyg |
---|
14 |
unis = get(gcf,'units'); |
---|
15 |
ppos = get(gcf,'paperposition'); |
---|
16 |
set(gcf,'units',get(gcf,'paperunits')); |
---|
17 |
pos = get(gcf,'position'); |
---|
18 |
pos(3:4) = ppos(3:4); |
---|
19 |
set(gcf,'position',pos); |
---|
20 |
set(gcf,'units',unis); |
---|
21 |
|
---|