Changeset 20379
- Timestamp:
- 03/30/16 09:02:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/quiver_colorbar.m
r20274 r20379 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
Note:
See TracChangeset
for help on using the changeset viewer.