Index: /issm/trunk/src/m/classes/public/plot/plot_quiver.m
===================================================================
--- /issm/trunk/src/m/classes/public/plot/plot_quiver.m	(revision 1745)
+++ /issm/trunk/src/m/classes/public/plot/plot_quiver.m	(revision 1746)
@@ -18,6 +18,10 @@
 if isnan(options_structure.scaling),
 	arrow=0.40;
+elseif isnumeric(options_structure.scaling),
+	arrow=options_structure.scaling;
+elseif ischar(options_structure.scaling) & strcmpi(options_structure.scaling,'off'),
+	arrow=NaN;
 else
-	arrow=options_structure.scaling;
+	error('plot_quiver error message: scaling option other than scalaer or ''off'' not supported yet')
 end
 
@@ -54,7 +58,9 @@
 
 %Scale data
-delta=((min(x)-max(x))^2+(min(y)-max(y))^2)/numel(x);
-u=arrow*sqrt(delta)*u./Norm;
-v=arrow*sqrt(delta)*v./Norm;
+if ~isnan(arrow),
+	delta=((min(x)-max(x))^2+(min(y)-max(y))^2)/numel(x);
+	u=arrow*sqrt(delta)*u./Norm;
+	v=arrow*sqrt(delta)*v./Norm;
+end
 
 %loop over the number of colors
@@ -69,10 +75,22 @@
 %take care of colorbar
 if  ~strcmpi(options_structure.colorbar,'off'),
+
+	%build ticks
 	hcb=colorbar('peer',gca,'location','EastOutside');
-	tickn=cell(1,length(levels));
+	ticklabel=cell(1,length(levels));
 	for i=1:length(levels),
-		tickn{i}=num2str(levels(i));
+		ticklabel{i}=num2str(levels(i));
 	end
-	set(hcb,'YTickLabel',tickn,'YTick',1:numcolors+1);
+	tickpos=1:numcolors+1;
+
+	%remove ticks if to many have been created
+	proportion=round(length(levels)/10);
+	if proportion>1,
+		ticklabel=ticklabel(1:proportion:end);
+		tickpos=tickpos(1:proportion:end);
+	end
+
+	%draw colorbar
+	set(hcb,'YTickLabel',ticklabel,'YTick',tickpos);
 	%position
 	if ~isnan(options_structure.colorbarpos),
@@ -87,4 +105,2 @@
 	set(hcb,'FontSize',fontsize);
 end
-
-%Now no colorbar done by 
