I'm not sure I'm following. Let's take a simple, concrete example:
rng default
nval = 100;
cmin = 8e-5;
cmax = 8e-3;
c = cmin + (cmax-cmin)*rand(1,nval);
x = randn(1,nval);
y = randn(1,nval);
scatter(x,y,[],c,'filled')
colorbar
At this point, caxis returns
ans =
0.000174264390450 0.007767094831544
Because those are the min & max values in the array c. If we do this:
Then the colorbar and the mapping the scatter uses to go from the array c to color values stretches to make room for the entire range.
That's kind of hard to see because the range is small. If we move one of the limits way in, it becomes more obvious.
Notice how all of the scatter values in the top half of the range are now drawn in the yellow color at the top of the colormap. Is that different from what you've encountered, or did you expect something different?