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

8 votos

Here is an example of how to do it:
[C,h] = contourf(peaks(20),10);
set(h,'LineColor','none')

4 comentarios

Walter Roberson
Walter Roberson el 13 de Feb. de 2012
Should it be EdgeColor since it is patches that are constructed?
Andrew Newell
Andrew Newell el 13 de Feb. de 2012
I tested it and it works - so maybe the lines are plotted separately.
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

12 votos

You can also put 'LineColor', 'none' in the argument list to contourf.

Categorías

Más información sobre Contour Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 13 de Feb. de 2012

Comentada:

el 20 de Jun. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by