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

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

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

revision 1.1 by enderton, Mon Jan 31 15:43:27 2005 UTC revision 1.2 by enderton, Mon Feb 7 05:31:45 2005 UTC
# Line 34  if AxesTrimX Line 34  if AxesTrimX
34      end      end
35  end  end
36  if AxesTrimY  if AxesTrimY
37      if ~ismember(pltslc{inrow}{incol},{'lonfld','latfld'}) && ~isCS      if ~ismember(pltslc{inrow}{incol},{'lonfld','latfld','timfld'}) && ~isCS
38          set(gca,'ylim',[min(yax{inrow}{incol}(:)),...          set(gca,'ylim',[min(yax{inrow}{incol}(:)),...
39                          max(yax{inrow}{incol}(:))]);                          max(yax{inrow}{incol}(:))]);
40      end      end
41  end  end
42    
43  % Limit y range -- Good for looking at upper layer of ocean.  % Limit y range -- Good for looking at upper layer of ocean.
44  if isequal(flu,'O') && ~isempty(ylimO),  set(gca,'ylim',ylimO); end  if isequal(flu,'O') && ~isempty(ylimO) && ...
45  if isequal(flu,'A') && ~isempty(ylimA),  set(gca,'ylim',ylimA); end     ~isequal(pltslc{inrow}{incol}(4:6),'fld'), set(gca,'ylim',ylimO); end
46    if isequal(flu,'A') && ~isempty(ylimA) && ...
47       ~isequal(pltslc{inrow}{incol}(4:6),'fld'), set(gca,'ylim',ylimA); end
48    
49  % If this is a Dimension-height plot, the axis must be flipped.  % If this is a Dimension-height plot, the axis must be flipped.
50  if ismember(pltslc{inrow}{incol},{'lonhgt','lathgt'}) && isequal(flu,'A')  if ismember(pltslc{inrow}{incol},{'lonhgt','lathgt'}) && isequal(flu,'A')

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22