Mercurial > hg > octave-lyh
comparison scripts/plot/line.m @ 17014:4d9862d9fce5
line.m: avoid calling "gca ()" when a parent axes is specified as prop/val pair (bug #39483).
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Tue, 16 Jul 2013 20:41:20 +0200 |
parents | ddac88d32d6a |
children | 761d2be77e78 |
comparison
equal
deleted
inserted
replaced
17013:64d603f8bcd9 | 17014:4d9862d9fce5 |
---|---|
33 | 33 |
34 function h = line (varargin) | 34 function h = line (varargin) |
35 | 35 |
36 ## make a default line object, and make it the current axes for | 36 ## make a default line object, and make it the current axes for |
37 ## the current figure. | 37 ## the current figure. |
38 tmp = __line__ (gca (), varargin{:}); | 38 [ax, varargin] = __plt_get_axis_arg__ ("line", varargin{:}); |
39 if (isempty (ax)) | |
40 ax = gca (); | |
41 endif | |
42 | |
43 tmp = __line__ (ax, varargin{:}); | |
39 | 44 |
40 if (nargout > 0) | 45 if (nargout > 0) |
41 h = tmp; | 46 h = tmp; |
42 endif | 47 endif |
43 | 48 |