MATLAB: Problem with the Color Bar

colorbarplot

My color bar shows solid boundaries and does not blend together. Below I have attached my problem,
colorbar.PNG
I rather want it to look like this
colorbar.PNG
Below is my code,
Let me know what is wrong
colormap(jet(10))
cb = colorbar;

Best Answer

Hi Hans,
try
colormap(jet)
colorbar
by default this has 64 color levels (as does the default colormap, 'parula') and looks much more continuous.
Related Question