Mercurial > hg > octave-nkf
changeset 17065:991e8a386aa3
legend.m: Update to use new __plt_get_axis_arg__.
* scripts/plot/legend.m: Update to use new __plt_get_axis_arg__.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 24 Jul 2013 23:12:46 -0700 |
parents | 84e000930ca5 |
children | 328b579e08e9 |
files | scripts/plot/legend.m |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/legend.m +++ b/scripts/plot/legend.m @@ -134,7 +134,10 @@ && (! ishandle (varargin{1}) || (strcmp (get (varargin{1}, "type"), "axes") && ! strcmp (get (varargin{1}, "tag"), "legend")))) - [ca, varargin, nargs] = __plt_get_axis_arg__ ("legend", varargin{:}); + [ca, varargin, nargin] = __plt_get_axis_arg__ ("legend", varargin{:}); + if (isempty (ca)) + ca = gca (); + endif fig = get (ca, "parent"); else fig = get (0, "currentfigure");