source:
issm/oecreview/Archive/19101-20495/ISSM-20378-20379.diff@
20498
Last change on this file since 20498 was 20498, checked in by , 9 years ago | |
---|---|
File size: 826 bytes |
-
../trunk-jpl/src/m/plot/quiver_colorbar.m
6 6 7 7 if strcmpi(getfieldvalue(options,'colorbar','on'),'on'), 8 8 9 %Create colorbar 10 hcb=colorbar('peer',gca,'location','EastOutside'); 11 caxis([1 quivers.numcolors+1]); 12 9 13 %build ticks 10 hcb=colorbar('peer',gca,'location','EastOutside');11 14 ticklabel=cell(1,length(quivers.levels)); 12 15 for i=1:length(quivers.levels), 13 16 ticklabel{i}=num2str(round_ice(quivers.levels(i),3)); 14 17 end 15 tickpos=1 /(quivers.numcolors+1)*[1:quivers.numcolors+1];18 tickpos=1:quivers.numcolors+1; 16 19 17 20 %remove ticks if to many have been created 18 21 proportion=round(length(quivers.levels)/4);
Note:
See TracBrowser
for help on using the repository browser.