--- MITgcm_contrib/enderton/Diagnostics/DiagPlot.m 2005/02/02 15:38:21 1.3 +++ MITgcm_contrib/enderton/Diagnostics/DiagPlot.m 2005/04/29 17:34:39 1.5 @@ -56,6 +56,7 @@ % Set panel settings to default values, override with optional % settings. + DiagPlotDefaults; ExpInfo = page{inrow}{incol}; for iarg = 14:2:length(ExpInfo) if ~ismember(ExpInfo{iarg},diagrunparam) @@ -89,9 +90,17 @@ yi = 1-dyt-inrow*dy-(inrow-1)*dym; isp = (inrow-1)*ncol+incol; + if DiagDebug, disp([' DiagDebug: Subplot: ',mat2str([nrow,ncol,isp])]); end + if DiagDebug, disp([' DiagDebug: SP Range: ',mat2str([xi,yi,dx,dy])]); end subplot(nrow,ncol,isp); hold on; set(gca,'position',[xi,yi,dx,dy],'fontsize',fs_axis); + if Coast + fac = pi./180; + xax{inrow}{incol} = xax{inrow}{incol}.*fac; + yax{inrow}{incol} = yax{inrow}{incol}.*fac; + else, fac = 1; end + % (Re)set axes and color axis -- Accounts for things like a possible % colorbar, or trimming the axis in certain ways. % Apply desired colorbar, contour label, tick labels, box, grid, and