source: issm/oecreview/Archive/19101-20495/ISSM-20378-20379.diff@ 20498

Last change on this file since 20498 was 20498, checked in by Mathieu Morlighem, 9 years ago

CHG: done with Archive/19101-20495

File size: 826 bytes
  • ../trunk-jpl/src/m/plot/quiver_colorbar.m

     
    66
    77if  strcmpi(getfieldvalue(options,'colorbar','on'),'on'),
    88
     9        %Create colorbar
     10        hcb=colorbar('peer',gca,'location','EastOutside');
     11        caxis([1 quivers.numcolors+1]);
     12
    913        %build ticks
    10         hcb=colorbar('peer',gca,'location','EastOutside');
    1114        ticklabel=cell(1,length(quivers.levels));
    1215        for i=1:length(quivers.levels),
    1316                ticklabel{i}=num2str(round_ice(quivers.levels(i),3));
    1417        end
    15         tickpos=1/(quivers.numcolors+1)*[1:quivers.numcolors+1];
     18        tickpos=1:quivers.numcolors+1;
    1619
    1720        %remove ticks if to many have been created
    1821        proportion=round(length(quivers.levels)/4);
Note: See TracBrowser for help on using the repository browser.