how to smooth the corners of a map
4 次查看(过去 30 天)
显示 更早的评论
I have a map of this type generated with the command "contourf(XX,YY,ZZ);" where XX is the longitude value, YY is the latitude value and ZZ is the data to be entered. This map with the different colors is created based on a grid of points that are spaced from each other by one degree of latitude and one degree of longitude. For this reason, in some cases, the limits of these maps are very clear.
I wanted to ask : is there a way to create smoother edges? to make the limits of colors more curvilinear...
thanksss
0 个评论
采纳的回答
Chunru
2021-11-9
You can interpolate the data first before using contourf. For example, you can use scatteredInterpolant (with method "natural) if your grid is irregular; Or you can use griddedInterpolant (which has more exotic interpolation methods).
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Data Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!