How do i remove white parts from the contour plots?
3 次查看(过去 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!