Contour Plot in gray scale

62 views (last 30 days)
Namira
Namira on 23 May 2018
Commented: Namira on 23 May 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.

Accepted Answer

Walter Roberson
Walter Roberson on 23 May 2018
Edited: Walter Roberson on 23 May 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 Comment
Namira
Namira on 23 May 2018
Thanks. It's working.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!