how i remove blue portion from graph

1 次查看(过去 30 天)

采纳的回答

Walter Roberson
Walter Roberson 2023-4-24
It appears that you have created a surface from a 2D array that has a row of 0 on the top and left edges.
Depending exactly how you are plotting, you might be able to trim that row and column before doing the plotting. Or you might be able to replace the 0's with NaN before doing the plotting. These possibilities might not work as hoped if you are using surf(), as surf() interpolates face color based upon adjacent values and NaN in particular could potentially end up "poisoning" the edges that you do want.
Another approach, depending on how you did the plotting, might be to adjust the color of those particular faces to be 'none' or NaN to make those faces transparent. You might be able to adjust the graphic object CData or AlphaData

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by