-
Notifications
You must be signed in to change notification settings - Fork 0
/
applytofig.m
21 lines (19 loc) · 941 Bytes
/
applytofig.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
% FROM: http://www.mathworks.com/company/newsletters/digest/december00/export.html;jsessionid=SvdQM1JQTHwF52GqS2nb0gXrnWyYGQjznsRXnyPhRWTjLf3tpZLJ!-248230706
function old = applytofig(h,varargin)
%APPLYTOFIG Apply EXPORTFIG options to figure.
% OLD = APPLYTOFIG(H) applies the default EXPORTFIG options to
% the figure with handle H and returns the state-difference
% structure in OLD.
% OLD = APPLYTOFIG(H, OPTIONS) applies OPTIONS to H as described
% in EXPORTFIG.
% OLD = APPLYTOFIG(...,PARAM1,VAL1,PARAM2,VAL2,...) applies the
% specified parameter-value pairs to H as described in EXPORTFIG.
%
% Use RESTOREFIG(H,OLD) to restore the figure to its state before
% applyfig was called.
%
% See also EXPORTFIG, PREVIEWFIG, RESTOREFIG.
% Copyright 2000 Ben Hinkle
% Email bug reports and comments to bhinkle@mathworks.com
temp = tempname;
old = exportfig(h,temp, varargin{:},'applystyle',1);