


WYSIWYG -- this function is called with no args and merely
changes the size of the figure on the screen to equal
the size of the figure that would be printed,
according to the papersize attribute. Use this function
to give a more accurate picture of what will be
printed.
Dan(K) Braithwaite, Dept. of Hydrology U.of.A 11/93

0001 function wysiwyg 0002 %WYSIWYG -- this function is called with no args and merely 0003 % changes the size of the figure on the screen to equal 0004 % the size of the figure that would be printed, 0005 % according to the papersize attribute. Use this function 0006 % to give a more accurate picture of what will be 0007 % printed. 0008 % Dan(K) Braithwaite, Dept. of Hydrology U.of.A 11/93 0009 0010 unis = get(gcf,'units'); 0011 ppos = get(gcf,'paperposition'); 0012 set(gcf,'units',get(gcf,'paperunits')); 0013 pos = get(gcf,'position'); 0014 pos(3:4) = ppos(3:4); 0015 set(gcf,'position',pos); 0016 set(gcf,'units',unis); 0017