/[MITgcm]/MITgcm_contrib/enderton/Diagnostics/DiagPlot.m
ViewVC logotype

Diff of /MITgcm_contrib/enderton/Diagnostics/DiagPlot.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3 by enderton, Wed Feb 2 15:38:21 2005 UTC revision 1.5 by molod, Fri Apr 29 17:34:39 2005 UTC
# Line 56  for inrow = 1:nrow Line 56  for inrow = 1:nrow
56                    
57          % Set panel settings to default values, override with optional          % Set panel settings to default values, override with optional
58          % settings.          % settings.
59            DiagPlotDefaults;
60                  ExpInfo = page{inrow}{incol};                  ExpInfo = page{inrow}{incol};
61                  for iarg = 14:2:length(ExpInfo)                  for iarg = 14:2:length(ExpInfo)
62              if ~ismember(ExpInfo{iarg},diagrunparam)              if ~ismember(ExpInfo{iarg},diagrunparam)
# Line 89  for inrow = 1:nrow Line 90  for inrow = 1:nrow
90          yi = 1-dyt-inrow*dy-(inrow-1)*dym;          yi = 1-dyt-inrow*dy-(inrow-1)*dym;
91                    
92          isp = (inrow-1)*ncol+incol;          isp = (inrow-1)*ncol+incol;
93            if DiagDebug, disp(['  DiagDebug:  Subplot:  ',mat2str([nrow,ncol,isp])]); end
94            if DiagDebug, disp(['  DiagDebug:  SP Range: ',mat2str([xi,yi,dx,dy])]); end
95          subplot(nrow,ncol,isp); hold on;          subplot(nrow,ncol,isp); hold on;
96          set(gca,'position',[xi,yi,dx,dy],'fontsize',fs_axis);          set(gca,'position',[xi,yi,dx,dy],'fontsize',fs_axis);
97                    
98            if Coast
99                fac = pi./180;
100                xax{inrow}{incol} = xax{inrow}{incol}.*fac;
101                yax{inrow}{incol} = yax{inrow}{incol}.*fac;
102            else, fac = 1; end
103            
104          % (Re)set axes and color axis -- Accounts for things like a possible          % (Re)set axes and color axis -- Accounts for things like a possible
105          % colorbar, or trimming the axis in certain ways.          % colorbar, or trimming the axis in certain ways.
106          % Apply desired colorbar, contour label, tick labels, box, grid, and          % Apply desired colorbar, contour label, tick labels, box, grid, and

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.22