Contour Plot in gray scale

15 visualizzazioni (ultimi 30 giorni)
Namira
Namira il 23 Mag 2018
Commentato: Namira il 23 Mag 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.

Risposta accettata

Walter Roberson
Walter Roberson il 23 Mag 2018
Modificato: Walter Roberson il 23 Mag 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.

Più risposte (0)

Categorie

Scopri di più su Contour Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by