Change-Id: I9b08351dd8149401ce99f06cdbf99554302b4d73
end
// Check if an existing axes matches wrect
- curFig = gcf();
- allAxes = curFig.children;
+ a = gca()
+ curParent = a.parent;
+ allAxes = curParent.children;
found = %F;
for kAxes = 1:size(allAxes, "*")
if allAxes(kAxes).type == "Axes" & and(allAxes(kAxes).axes_bounds(:)==wrect(:)) then
end
if ~found then
- a = newaxes();
+ a = newaxes(curParent);
if ~isempty(wrect) then
a.axes_bounds = wrect;
end