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.

 채택된 답변

Walter Roberson
Walter Roberson 2018년 5월 23일
편집: Walter Roberson 2018년 5월 23일

2 개 추천

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.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기

태그

질문:

2018년 5월 23일

댓글:

2018년 5월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by