Contour Plot in gray scale
조회 수: 27 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
Walter Roberson
2018년 5월 23일
편집: Walter Roberson
2018년 5월 23일
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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!