Mercurial > octave-nkf
comparison scripts/plot/axes.m @ 10549:95c3e38098bf
Untabify .m scripts
author | Rik <code@nomad.inbox5.com> |
---|---|
date | Fri, 23 Apr 2010 11:28:50 -0700 |
parents | eb63fbe60fab |
children | be55736a0783 |
comparison
equal
deleted
inserted
replaced
10548:479536c5bb10 | 10549:95c3e38098bf |
---|---|
42 else | 42 else |
43 ## arg is axes handle, make it the current axes for the current | 43 ## arg is axes handle, make it the current axes for the current |
44 ## figure. | 44 ## figure. |
45 tmp = varargin{1}; | 45 tmp = varargin{1}; |
46 if (length(tmp) == 1 && ishandle (tmp) | 46 if (length(tmp) == 1 && ishandle (tmp) |
47 && strcmp (get (tmp, "type"), "axes")) | 47 && strcmp (get (tmp, "type"), "axes")) |
48 parent = ancestor (tmp, "figure"); | 48 parent = ancestor (tmp, "figure"); |
49 set (0, "currentfigure", parent); | 49 set (0, "currentfigure", parent); |
50 set (parent, "currentaxes", tmp); | 50 set (parent, "currentaxes", tmp); |
51 else | 51 else |
52 error ("axes: expecting argument to be a scalar axes handle"); | 52 error ("axes: expecting argument to be a scalar axes handle"); |