Problem with the Color Bar

5 visualizaciones (últimos 30 días)
Hans123
Hans123 el 23 de Jul. de 2019
Respondida: David Goodmanson el 24 de Jul. de 2019
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;

Respuesta aceptada

David Goodmanson
David Goodmanson el 24 de Jul. de 2019
Hi Hans,
try
colormap(jet)
colorbar
by default this has 64 color levels (as does the default colormap, 'parula') and looks much more continuous.

Más respuestas (0)

Categorías

Más información sobre Colormaps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by