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 36 set(hAx,'color','none')
37 37 set(hAx(1),'ycolor','b')
38 38 set(hAx(2),'ycolor','g')
  39 +
  40 +hAx(1).XAxis.Color = 'w';
  41 +
39 42 set(hLine1,'linewidth',2,'color','b')
40 43 set(hLine2,'linewidth',2,'color','g')
41 44 h2=gca;
... ... @@ -83,6 +86,10 @@ set(curs,'UpdateFcn', @plotother)
83 86 evalin('base', 'set(linex,''visible'',''off'')')
84 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 93 FSD1=reshape(FSD(posx,posx,:,:),length(Fsize),length(hcat));
87 94 IDT1=IDT(posx,:);
88 95 for i=1:length(hcat)
... ... @@ -93,29 +100,32 @@ set(curs,'UpdateFcn', @plotother)
93 100  
94 101  
95 102 subplot(2,2,1)
96   - title('FSTD')
  103 +
97 104 colormap(cmap)
98 105 pcolor(hcat,Fsize,nfloe);
99   - shading interp
  106 + shading flat
100 107 c=colorbar;
  108 + set(c,'color','w')
101 109 xlabel('Floe thickness [m]','interpreter','latex')
102 110 ylabel('Floe size','interpreter','latex')
103 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 118 nfloe2=((sum(FSD1,2)*dx^2)./Fsize.^2)/sum((sum(FSD1,2)*dx^2)./Fsize.^2);
110 119 plot(Fsize,nfloe2,'linewidth',2,'color','m')
111 120 set(gca,'color','none')
  121 + ax = gca;
  122 + ax.XAxis.Color = 'w';
  123 + ax.YAxis.Color = 'w';
112 124 xlabel('Floe size [m]','interpreter','latex')
113 125 ylabel('normalized number of floes','interpreter','latex')
114 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 130 end
121 131  
... ... @@ -125,7 +135,7 @@ end
125 135  
126 136  
127 137  
128   -
  138 +
129 139  
130 140  
131 141  
... ...