x=1:Nx-2; y=1:Ny-2; subplot(2,1,1) imagesc(abs(squeeze(sumD1(4:Nx-2,3:Ny-1,1)))') %contourf(x,y,squeeze(sumD1(1:Nx-2,1:Ny-2,1))',8) set(gca,'DataAspectRatio',[2,2,2]) set(gca,'ydir','norm') xlabel('X ','FontSize',17) ylabel('Y ','FontSize',17) set(gca,'XtickLabel','||') set(gca,'YtickLabel','||') text(Nx2/2-25,Ny2+5,'\int Q D_p dz','Fontsize',17); text(-25,Ny2-5,'(a)','Fontsize',17); subplot(2,1,2) imagesc(abs(squeeze(sumM1(4:Nx-2,3:Ny-1,1)))') %contourf(x,y,-squeeze(sumM1(1:Nx-2,1:Ny-2,1))',8) set(gca,'DataAspectRatio',[2,2,2]) set(gca,'ydir','norm') xlabel('X ','FontSize',17) ylabel('Y ','FontSize',17) set(gca,'XtickLabel','|||') set(gca,'YtickLabel','|||') text(Nx2/2-25,Ny2+5,'\int Q M_p dz','Fontsize',17); text(-25,Ny2-5,'(b)','Fontsize',17); colormap gray cmap=colormap; cmap=flipud(cmap); %cmap=sqrt(cmap); cmap=0.5*(1-cos(3.1415*cmap)); colormap(cmap) %figure %subplot(2,1,1) %contourf(x,y,squeeze(sumD1(1:Nx-2,1:Ny-2,1))',8) % set(gca,'DataAspectRatio',[2,2,2]) % set(gca,'ydir','norm') %xlabel('X ','FontSize',17) % ylabel('Y ','FontSize',17) % set(gca,'XtickLabel','||') % set(gca,'YtickLabel','||') %text(Nx2/2-25,Ny2+5,'\int Q D_p dz','Fontsize',17); %text(-25,Ny2-5,'(a)','Fontsize',17); %subplot(2,1,2) %contourf(x,y,-squeeze(sumM1(1:Nx-2,1:Ny-2,1))',8) % set(gca,'DataAspectRatio',[2,2,2]) % set(gca,'ydir','norm') %xlabel('X ','FontSize',17) %ylabel('Y ','FontSize',17) %set(gca,'XtickLabel','|||') %set(gca,'YtickLabel','|||') %text(Nx2/2-25,Ny2+5,'\int Q M_p dz','Fontsize',17); %text(-25,Ny2-5,'(b)','Fontsize',17); % cmap=flipud(cmap); %colormap(cmap)