comparison scripts/plot/patch.m @ 7142:121841c08c25

[project @ 2007-11-09 16:59:43 by jwe]
author jwe
date Fri, 09 Nov 2007 17:01:24 +0000
parents e31f12bb9194
children 57d2546ad8d5
comparison
equal deleted inserted replaced
7141:63ba061a3036 7142:121841c08c25
42 error ("patch: expecting first argument to be an axes object"); 42 error ("patch: expecting first argument to be an axes object");
43 endif 43 endif
44 oldh = gca (); 44 oldh = gca ();
45 unwind_protect 45 unwind_protect
46 axes (h); 46 axes (h);
47 [tmp, fail] = __patch__ (h, varargin{:}); 47 [tmp, fail] = __patch__ (h, varargin{2:end});
48 unwind_protect_cleanup 48 unwind_protect_cleanup
49 axes (oldh); 49 axes (oldh);
50 end_unwind_protect 50 end_unwind_protect
51 else 51 else
52 [tmp, fail] = __patch__ (gca (), varargin{:}); 52 [tmp, fail] = __patch__ (gca (), varargin{:});