I want to make transparent the middle section of contour plzzzz help
조회 수: 1 (최근 30일)
이전 댓글 표시
I have attached the picture of contour I have obtained via contourf and extremely lengthy code. Now i want to remove or make transparent the middle section of contour with temperatures having 80 degrees. Now in order words the temperature inside the core is already known and I dont want to show it on contour please help anybody.
The inside core (80 degrees shouldnt be available) SOLID WORKS Results
MATLAB Results ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1152498/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1152498/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1152503/image.jpeg)
NOW I WANT BOTH TO LOOK SIMILAR SO PLZZ HELP ME GET RID OF MATLAB INSIDE CORE TEMPERATURE REPRESENTATION. I EVEN HAVE ALL THE COORDINATES OR NODES OR ADDRESSES OF THESE INSIDE CORE VALUES OF 80 DEGREES
댓글 수: 3
채택된 답변
DGM
2022년 10월 11일
편집: DGM
2022년 10월 11일
The example in this answer is similar. Therein, the lowest contour level is made transparent. If you dont want the other levels to be semitransparent, you can omit that part.
Alternatively, you could either mask the region with NaN as dpb suggests, or you could possibly just overlay a patch object if actual transparency is unnecessary. It depends whether it's better to define the region strictly geometrically or simply by using the data level.
댓글 수: 0
추가 답변 (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!