contourf with no isoline

126 vues (au cours des 30 derniers jours)
Shani Gal
Shani Gal le 13 Fév 2012
Commenté : Utility le 20 Juin 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

Réponse acceptée

Andrew Newell
Andrew Newell le 13 Fév 2012
Here is an example of how to do it:
[C,h] = contourf(peaks(20),10);
set(h,'LineColor','none')
  4 commentaires
Shani Gal
Shani Gal le 19 Fév 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 le 2 Août 2015
Thanks so much. it worked.

Connectez-vous pour commenter.

Plus de réponses (1)

Todd
Todd le 7 Mar 2012
You can also put 'LineColor', 'none' in the argument list to contourf.
  1 commentaire
Utility
Utility le 20 Juin 2022
super! Thanks a lot!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by