Contour Plot in gray scale

39 vues (au cours des 30 derniers jours)
Namira
Namira le 23 Mai 2018
Commenté : Namira le 23 Mai 2018
I would like to plot this contour figure in grayscale. I would like to represent higher values in dark shades. Can anyone give me the command to plot this figure? Thanks.

Réponse acceptée

Walter Roberson
Walter Roberson le 23 Mai 2018
Modifié(e) : Walter Roberson le 23 Mai 2018
colormap( flipud(gray(256)) )
gray(256) would normally be brighter for higher values, so you reverse the order of the colors to get darker for higher values.
  1 commentaire
Namira
Namira le 23 Mai 2018
Thanks. It's working.

Connectez-vous pour commenter.

Plus de réponses (0)

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