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

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

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

revision 1.4 by molod, Fri Apr 29 17:34:39 2005 UTC revision 1.7 by enderton, Mon Sep 12 20:13:21 2005 UTC
# Line 5  Line 5 
5  %      Apply desired colorbar, contour label, tick labels, box, grid      %  %      Apply desired colorbar, contour label, tick labels, box, grid      %
6  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7    
8    % Center caxis around 0
9    if cmapcenter0
10        caxis([-max(abs(caxis)),max(abs(caxis))]);
11    end
12    
13    % Apply desired colormap.
14    if ~isequal(cmap,'')
15        if isequal(cmap,'solid-dashed')
16            % Accounted for in DiagPlotMakePlot.
17        elseif isequal(cmap,'black')
18            colormap([0,0,0]);
19        elseif isequal(cmap,'bwr')
20            load('BWR_6.mat');
21            colormap(bwr);
22        else
23            colormap(cmap);
24        end
25    end
26    
27  % Add colorbar, except for line plots.  When the colorbar is placed, reset  % Add colorbar, except for line plots.  When the colorbar is placed, reset
28  % the colorbar and axes positions on the figure to match desired settings.  % the colorbar and axes positions on the figure to match desired settings.
# Line 70  if Coast Line 88  if Coast
88      m_proj('Equidistant Cylindrical','lat',90,'lon',[-180 180]);      m_proj('Equidistant Cylindrical','lat',90,'lon',[-180 180]);
89      m_coast('color',[0 0 0]);      m_coast('color',[0 0 0]);
90      %m_grid('box','on')      %m_grid('box','on')
91        %draw_coast(1.)
92  end  end

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.22