Mercurial > hg > octave-nkf
comparison scripts/plot/plot.m @ 7208:a730e47fda4d
[project @ 2007-11-28 02:32:41 by jwe]
author | jwe |
---|---|
date | Wed, 28 Nov 2007 02:32:42 +0000 |
parents | a1dbe9d80eee |
children | dd88d61d443f |
comparison
equal
deleted
inserted
replaced
7207:71c03c7239fb | 7208:a730e47fda4d |
---|---|
177 ## Author: jwe | 177 ## Author: jwe |
178 | 178 |
179 function retval = plot (varargin) | 179 function retval = plot (varargin) |
180 | 180 |
181 if (isscalar (varargin{1}) && ishandle (varargin{1})) | 181 if (isscalar (varargin{1}) && ishandle (varargin{1})) |
182 h = varargin {1}; | 182 h = varargin{1}; |
183 if (! strcmp (get (h, "type"), "axes")) | 183 if (! strcmp (get (h, "type"), "axes")) |
184 error ("plot: expecting first argument to be an axes object"); | 184 error ("plot: expecting first argument to be an axes object"); |
185 endif | 185 endif |
186 oldh = gca (); | 186 oldh = gca (); |
187 unwind_protect | 187 unwind_protect |