Functions | |
if (!isempty(idx)&&length(varargin) >=2 *idx) cf | |
varargin ([2 *idx-1, 2 *idx]) | |
set (ancestor(cf,"figure"),"currentaxes", tmp) | |
if (length(tmp)==1 &&ishandle(tmp)&&strcmp(get(tmp,"type"),"axes")) parent | |
set (0,"currentfigure", parent) | |
set (parent,"currentaxes", tmp) | |
else | error ("axes: expecting argument to be a scalar axes handle") |
endif endif | if (nargout > 0) h |
Variables | |
function | h |
else | cf = gcf () |
endif | tmp = __go_axes__ (cf, varargin{:}) |
if | ( | length(tmp) | = =1 &&ishandle(tmp)&&strcmp(get(tmp,"type"),"axes") |
) |
if | ( | !isempty(idx)&&length(varargin) >=2 * | idx | ) |
set | ( | parent | , | |
"currentaxes" | , | |||
tmp | ||||
) |
set | ( | 0 | , | |
"currentfigure" | , | |||
parent | ||||
) |
set | ( | ancestor(cf,"figure") | , | |
"currentaxes" | , | |||
tmp | ||||
) |
varargin | ( | ) |
function h |