Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
7215:dd88d61d443f | 7216:5389a52df87b |
---|---|
42 else | 42 else |
43 error ("%s: expecting first argument to be axes handle", caller); | 43 error ("%s: expecting first argument to be axes handle", caller); |
44 endif | 44 endif |
45 else | 45 else |
46 f = get (0, "currentfigure"); | 46 f = get (0, "currentfigure"); |
47 if (! isempty (f)) | 47 if (isempty (f)) |
48 h = []; | |
49 else | |
48 h = get (f, 'currentaxes'); | 50 h = get (f, 'currentaxes'); |
49 elseif (nogca) | 51 endif |
50 h = NaN; | 52 if (isempty (h)) |
51 else | 53 if (nogca) |
52 h = gca (); | 54 h = NaN; |
55 else | |
56 h = gca (); | |
57 endif | |
53 endif | 58 endif |
54 if (nargin < 2) | 59 if (nargin < 2) |
55 varargin = {}; | 60 varargin = {}; |
56 endif | 61 endif |
57 endif | 62 endif |