forked from williamBarnhart/faultResampler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot_result_slip.m
55 lines (47 loc) · 1.27 KB
/
plot_result_slip.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
function[] = plot_result_fs(fileName, index)
infoValues = load(fileName);
cmin = -20;
cmax = 20;
xmin = 500000;
xmax = 600000;
ymin = 3600000;
ymax = 3700000;
Ndata = index;
rowNos = 1:3;
figure
subplot(3,1,1)
patch(infoValues.resultstruct.boxx(rowNos,Ndata),infoValues.resultstruct.boxy(rowNos,Ndata), infoValues.resultstruct.data(Ndata).*100);
axis image
shading flat
c = colorbar;
c.Label.String = 'LOS displacement (cm)';
title('Data')
caxis([cmin cmax])
set(gca,'xLim',[xmin xmax])
set(gca,'yLim',[ymin ymax])
box on
set(gca,'fontsize',10)
subplot(3,1,2)
patch(infoValues.resultstruct.boxx(rowNos,Ndata),infoValues.resultstruct.boxy(rowNos,Ndata), infoValues.resultstruct.synth(Ndata).*100)
axis image
shading flat
c = colorbar;
c.Label.String = 'LOS displacement (cm)';
title('Model')
caxis([cmin cmax])
set(gca,'xLim',[xmin xmax])
set(gca,'yLim',[ymin ymax])
box on
set(gca,'fontsize',10)
subplot(3,1,3)
patch(infoValues.resultstruct.boxx(rowNos,Ndata),infoValues.resultstruct.boxy(rowNos,Ndata), (infoValues.resultstruct.data(Ndata)-infoValues.resultstruct.synth(Ndata)).*100)
axis image
shading flat
c = colorbar;
c.Label.String = 'LOS displacement (cm)';
title('Residual')
caxis([cmin cmax])
set(gca,'xLim',[xmin xmax])
set(gca,'yLim',[ymin ymax])
box on
set(gca,'fontsize',10)