applytofig.m (782B)
1 function old = applytofig(h,varargin) 2 %APPLYTOFIG Apply EXPORTFIG options to figure. 3 % OLD = APPLYTOFIG(H) applies the default EXPORTFIG options to 4 % the figure with handle H and returns the state-difference 5 % structure in OLD. 6 % OLD = APPLYTOFIG(H, OPTIONS) applies OPTIONS to H as described 7 % in EXPORTFIG. 8 % OLD = APPLYTOFIG(...,PARAM1,VAL1,PARAM2,VAL2,...) applies the 9 % specified parameter-value pairs to H as described in EXPORTFIG. 10 % 11 % Use RESTOREFIG(H,OLD) to restore the figure to its state before 12 % applyfig was called. 13 % 14 % See also EXPORTFIG, PREVIEWFIG, RESTOREFIG. 15 16 % Copyright 2000 Ben Hinkle 17 % Email bug reports and comments to bhinkle@mathworks.com 18 19 temp = tempname; 20 old = exportfig(h,temp, varargin{:},'applystyle',1);