Index: /issm/trunk-jpl/src/m/plot/quiver_colorbar.m
===================================================================
--- /issm/trunk-jpl/src/m/plot/quiver_colorbar.m	(revision 20378)
+++ /issm/trunk-jpl/src/m/plot/quiver_colorbar.m	(revision 20379)
@@ -7,11 +7,14 @@
 if  strcmpi(getfieldvalue(options,'colorbar','on'),'on'),
 
+	%Create colorbar
+	hcb=colorbar('peer',gca,'location','EastOutside');
+	caxis([1 quivers.numcolors+1]);
+
 	%build ticks
-	hcb=colorbar('peer',gca,'location','EastOutside');
 	ticklabel=cell(1,length(quivers.levels));
 	for i=1:length(quivers.levels),
 		ticklabel{i}=num2str(round_ice(quivers.levels(i),3));
 	end
-	tickpos=1/(quivers.numcolors+1)*[1:quivers.numcolors+1];
+	tickpos=1:quivers.numcolors+1;
 
 	%remove ticks if to many have been created
