Commit 963a18cbdc9818758bfc7e102fff6b9c8f1c68e8

Authored by Jérémy Baudry
1 parent fe7bdc5e
Exists in master

version problems

Showing 1 changed file with 19 additions and 9 deletions   Show diff stats
scripts_matlab/FSTD.m
@@ -36,6 +36,9 @@ plot1=subplot(2,2,3:4); @@ -36,6 +36,9 @@ plot1=subplot(2,2,3:4);
36 set(hAx,'color','none') 36 set(hAx,'color','none')
37 set(hAx(1),'ycolor','b') 37 set(hAx(1),'ycolor','b')
38 set(hAx(2),'ycolor','g') 38 set(hAx(2),'ycolor','g')
  39 +
  40 +hAx(1).XAxis.Color = 'w';
  41 +
39 set(hLine1,'linewidth',2,'color','b') 42 set(hLine1,'linewidth',2,'color','b')
40 set(hLine2,'linewidth',2,'color','g') 43 set(hLine2,'linewidth',2,'color','g')
41 h2=gca; 44 h2=gca;
@@ -83,6 +86,10 @@ set(curs,'UpdateFcn', @plotother) @@ -83,6 +86,10 @@ set(curs,'UpdateFcn', @plotother)
83 evalin('base', 'set(linex,''visible'',''off'')') 86 evalin('base', 'set(linex,''visible'',''off'')')
84 end 87 end
85 88
  89 + get(h1,'ylim')
  90 + linex=plot(h1,[pos(1) pos(1)],get(h1,'ylim'),'linewidth',1.5,'color',[0.2 0.2 0.6],'linestyle','--');
  91 + assignin('base','linex',linex)
  92 +
86 FSD1=reshape(FSD(posx,posx,:,:),length(Fsize),length(hcat)); 93 FSD1=reshape(FSD(posx,posx,:,:),length(Fsize),length(hcat));
87 IDT1=IDT(posx,:); 94 IDT1=IDT(posx,:);
88 for i=1:length(hcat) 95 for i=1:length(hcat)
@@ -93,29 +100,32 @@ set(curs,'UpdateFcn', @plotother) @@ -93,29 +100,32 @@ set(curs,'UpdateFcn', @plotother)
93 100
94 101
95 subplot(2,2,1) 102 subplot(2,2,1)
96 - title('FSTD') 103 +
97 colormap(cmap) 104 colormap(cmap)
98 pcolor(hcat,Fsize,nfloe); 105 pcolor(hcat,Fsize,nfloe);
99 - shading interp 106 + shading flat
100 c=colorbar; 107 c=colorbar;
  108 + set(c,'color','w')
101 xlabel('Floe thickness [m]','interpreter','latex') 109 xlabel('Floe thickness [m]','interpreter','latex')
102 ylabel('Floe size','interpreter','latex') 110 ylabel('Floe size','interpreter','latex')
103 ylabel(c,'normalized number of floes','interpreter','latex') 111 ylabel(c,'normalized number of floes','interpreter','latex')
  112 + ax = gca;
  113 + ax.XAxis.Color = 'w';
  114 + ax.YAxis.Color = 'w';
  115 + subplot(2,2,2)
104 116
105 117
106 - subplot(2,2,2)  
107 - title('FSD')  
108 - FSD2(posx,:)=sum(FSD1,2);  
109 nfloe2=((sum(FSD1,2)*dx^2)./Fsize.^2)/sum((sum(FSD1,2)*dx^2)./Fsize.^2); 118 nfloe2=((sum(FSD1,2)*dx^2)./Fsize.^2)/sum((sum(FSD1,2)*dx^2)./Fsize.^2);
110 plot(Fsize,nfloe2,'linewidth',2,'color','m') 119 plot(Fsize,nfloe2,'linewidth',2,'color','m')
111 set(gca,'color','none') 120 set(gca,'color','none')
  121 + ax = gca;
  122 + ax.XAxis.Color = 'w';
  123 + ax.YAxis.Color = 'w';
112 xlabel('Floe size [m]','interpreter','latex') 124 xlabel('Floe size [m]','interpreter','latex')
113 ylabel('normalized number of floes','interpreter','latex') 125 ylabel('normalized number of floes','interpreter','latex')
114 grid on 126 grid on
115 127
116 - get(h1,'ylim')  
117 - linex=plot(h1,[pos(1) pos(1)],get(h1,'ylim'),'linewidth',1.5,'color',[0.2 0.2 0.6],'linestyle','--');  
118 - assignin('base','linex',linex) 128 +
119 129
120 end 130 end
121 131
@@ -125,7 +135,7 @@ end @@ -125,7 +135,7 @@ end
125 135
126 136
127 137
128 - 138 +
129 139
130 140
131 141