How do i remove white parts from the contour plots?
조회 수: 5 (최근 30일)
이전 댓글 표시
When I am plotting a contour I am getting white portions in the areas beyond the specicied range of limits. I would rather want the the colour of the extreme limits.
I hope you can help me solve this problem.

댓글 수: 0
채택된 답변
Walter Roberson
2020년 4월 24일
constrained_data = max(min(Data, upper_limit_to_show), lower_limit_to_show);
surf(X, Y, constrained_data)
댓글 수: 7
Walter Roberson
2022년 12월 2일
upper_limit_to_show and lower_limit_to_show are not functions in this context: they are values that represent the upper limit of values that you want to display, and the lower limit that you want to display.
For example,
Data = imread('flamingos.jpg');
upper_limit_to_show = 200;
lower_limit_to_show = 150;
constrained_data = max(min(Data, upper_limit_to_show), lower_limit_to_show);
imshow(Data); title('original');
imshow(constrained_data); title('constrained')
추가 답변 (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!

