Documentation of wysiwyg


Global Index (all files) (short | long) | Local Index (files in subdir) (short | long)


Function Synopsis

wysiwyg
%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

unis = get(gcf,'units');
ppos = get(gcf,'paperposition');
set(gcf,'units',get(gcf,'paperunits'));
pos = get(gcf,'position');
pos(3:4) = ppos(3:4);
set(gcf,'position',pos);
set(gcf,'units',unis);

Cross-Reference Information

This function is called by

Listing of function wysiwyg



function wysiwyg
%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

unis = get(gcf,'units');
ppos = get(gcf,'paperposition');
set(gcf,'units',get(gcf,'paperunits'));
pos = get(gcf,'position');
pos(3:4) = ppos(3:4);
set(gcf,'position',pos);
set(gcf,'units',unis);