contourf with no isoline

191 visualizaciones (últimos 30 días)
Shani Gal
Shani Gal el 13 de Feb. de 2012
Comentada: Utility el 20 de Jun. de 2022
Hi
How do I plot a contourf plot only with colors and no isolines?
"filled contour plot displays isolines calculated from matrix Z and fills the areas between the isolines using constant colors corresponding to the current figure's colormap"
I wish to have only the color between the isolines but no isolines..
Thanks
Shani

Respuesta aceptada

Andrew Newell
Andrew Newell el 13 de Feb. de 2012
Here is an example of how to do it:
[C,h] = contourf(peaks(20),10);
set(h,'LineColor','none')
  4 comentarios
Shani Gal
Shani Gal el 19 de Feb. de 2012
Thanks, how do I change the label on the axis? a 20x400 matrix will display 0 to 20 and 0 to 400. How do I assign real values to this numbers?
Oanh Bui
Oanh Bui el 2 de Ag. de 2015
Thanks so much. it worked.

Iniciar sesión para comentar.

Más respuestas (1)

Todd
Todd el 7 de Mzo. de 2012
You can also put 'LineColor', 'none' in the argument list to contourf.
  1 comentario
Utility
Utility el 20 de Jun. de 2022
super! Thanks a lot!

Iniciar sesión para comentar.

Categorías

Más información sobre Contour Plots 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