Index: ../trunk-jpl/src/m/plot/plot_scatter.m
===================================================================
--- ../trunk-jpl/src/m/plot/plot_scatter.m	(revision 18916)
+++ ../trunk-jpl/src/m/plot/plot_scatter.m	(revision 18917)
@@ -36,7 +36,7 @@
 %Max=1300;
 
 %OK, should we create a new colorbar for the occasion?
-if isempty(findobj(gcf,'tag','TMW_COLORBAR')),
+if isempty(findobj(gcf,'tag','TMW_COLORBAR')) && isempty(findobj(gcf,'Type','Colorbar')),
 	alreadyplot=false;
 else
 	alreadyplot=true;
@@ -45,8 +45,14 @@
 %generate levels
 if (alreadyplot),
 	phch = get(findall(gcf,'type','image','tag','TMW_COLORBAR'),{'parent'});
-	h    = phch{1};
-	ylim=get(h,'YLim');
+	if ~isempty(phch),
+		h    = phch{1};
+		ylim=get(h,'YLim');
+	else
+		%R2014b +
+		h = findobj(gcf,'Type','Colorbar');
+		ylim = h.Limits;
+	end
 	palette=colormap;
 	numcolors=size(palette,1);
 	levels=round_ice(linspace(ylim(1),ylim(2),numcolors+1),2);
