Changeset 20274


Ignore:
Timestamp:
02/29/16 19:54:47 (9 years ago)
Author:
Mathieu Morlighem
Message:

CHG: need to scale positions by max

File:
1 edited

Legend:

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

    r13646 r20274  
    1313                ticklabel{i}=num2str(round_ice(quivers.levels(i),3));
    1414        end
    15         tickpos=1:quivers.numcolors+1;
     15        tickpos=1/(quivers.numcolors+1)*[1:quivers.numcolors+1];
    1616
    1717        %remove ticks if to many have been created
     
    2424        %draw colorbar
    2525        set(hcb,'YTickLabel',ticklabel,'YTick',tickpos);
     26
    2627        %position
    2728        if exist(options,'colorbarpos'),
Note: See TracChangeset for help on using the changeset viewer.