Contourf and NaNs (how to make white regions transparent)
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello, I'm trying to make a contourf plot but certain areas of the data array have NaNs (only in the data matrix, the x and y meshgrid matrices are full). I'd like these NaNs to be transparent, and they are for NaNs on the boundary of the rectangle. But, contiguous NaN regions inside the data matrix are white instead of transparent. How can I make these transparent? Below is an example. Thanks,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150449/image.jpeg)
-Justin
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!