From: H Milne on
Hello,

I'm trying to create a quiver plot which has a representative data scale in the colorbar. At the moment the colorbar ranges from 0 to 260 but I wish to have it represent data values that range -140 to 120. I use freeze colors to overlay the original colormap (colmap) on each image as each has a slightly different data range (reflected in 'newmap' colormap). However I cannot define the data range with caxis. Have also tried using cbfit and colorscale.

subplot('Position',[0.15 0.5 0.75 0.5]);
imshow(reimg2)
hold on
quiver2(x(yes),y(yes),totalu(yes),totalv(yes),'n=',0,'c=',newmap)
freezeColors
caxis([-140 120])
colormap(colmap)
cblabel(' no. pixels displacement ');
hold off

Thanks for your help.