-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAxesControl.m
26 lines (22 loc) · 965 Bytes
/
AxesControl.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function AxesControl(app,numaxes)
%This function deletes additional axes created for mult plots
% This is a temporary solution, better solution is to use
% find to get the positional values of axes in the panel
for iaxs= 1: numaxes
iax =1;
axisPos = app.Panel.Children(iax).Position;
num=size(app.Panel.Children,1);
if axisPos == [0 0 0 0] & num~=1
delete (app.Panel.Children(iax+1:end))
break
else
delete ( app.Panel.Children(iax))
if iaxs>1
iax=iaxs-1;
end
if size(app.Panel.Children,1)==1
break
end
end
end
end