contourf change plot color
조회 수: 9 (최근 30일)
이전 댓글 표시
I am trying to change the contourf plot color to white. I understand that Matlab has several built-in colormaps and changing between these is easy. However, I just want the contour lines on a white background. I know plotting on a white background can be done with the contour command, but the data I am plotting is incomplete. "Contourf" will complete the data islands, but "contour" will not approximate the missing points on my map. Thank you for your help in advance!
댓글 수: 0
채택된 답변
Sean de Wolski
2012년 4월 18일
contourf(magic(5))
colormap([1 1 1]) %set the colormap to one level - white
추가 답변 (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!