forked from HJReachability/helperOC
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathformatSubplots4.m
More file actions
24 lines (20 loc) · 748 Bytes
/
formatSubplots4.m
File metadata and controls
24 lines (20 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% Subplot spacing
subP_size = 0.375;
subP_xmin = 0.1;
subP_ymin = 0.2;
subP_xgap = 0.1;
subP_ygap = 0;
subP_pos = [subP_xmin subP_ymin+subP_size+subP_ygap subP_size subP_size;
subP_xmin+subP_size+subP_xgap subP_ymin+subP_size+subP_ygap subP_size subP_size;
subP_xmin subP_ymin subP_size subP_size;
subP_xmin+subP_size+subP_xgap subP_ymin subP_size subP_size];
for j = 1:4 % Fix defender position
% subplot(2,2,j)
f = gcf;
gca = f.Children(j+1);
set(gca,'position',subP_pos(5-j,:))
end
pos = get(gcf,'position');
set(gcf,'position',[200 200 600 800]);
set(legend,'units','pixels','position',[200 10 225 150])
% legend('boxoff')