Changeset 20379


Ignore:
Timestamp:
03/30/16 09:02:13 (9 years ago)
Author:
Mathieu Morlighem
Message:

BUG: trying to fix behavior of colorbar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/quiver_colorbar.m

    r20274 r20379  
    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
Note: See TracChangeset for help on using the changeset viewer.