Mercurial > hg > octave-nkf
diff scripts/plot/__plt_get_axis_arg__.m @ 7216:5389a52df87b
[project @ 2007-11-29 19:07:29 by jwe]
author | jwe |
---|---|
date | Thu, 29 Nov 2007 19:07:29 +0000 |
parents | dd88d61d443f |
children | c0c6aa5afff4 |
line wrap: on
line diff
--- a/scripts/plot/__plt_get_axis_arg__.m +++ b/scripts/plot/__plt_get_axis_arg__.m @@ -44,12 +44,17 @@ endif else f = get (0, "currentfigure"); - if (! isempty (f)) + if (isempty (f)) + h = []; + else h = get (f, 'currentaxes'); - elseif (nogca) - h = NaN; - else - h = gca (); + endif + if (isempty (h)) + if (nogca) + h = NaN; + else + h = gca (); + endif endif if (nargin < 2) varargin = {};