Why does the CONTOURM function in the Mapping Toolbox draw stray lines at some contour levels?
5 views (last 30 days)
Show older comments
MathWorks Support Team
on 27 Jun 2009
Commented: Image Analyst
on 7 Aug 2014
I use CONTOURM to draw contours when specifying a vector of levels. However, at one of these levels, I see stray lines that seem to be connecting points across my entire map. It appears as though CONTOURM is not distinguishing the situation when my contour intersects the line of longitude at the edge of my map. Instead, it tries to connect the data points through that line of longitude, and across the map.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:
This has been verified as a bug in the Mapping Toolbox in the way that the mapping contour functions determine where the edge of the map is.
Currently, to work around this issue, you can try off-setting your contours by a small amount. For example, if you are using a contour level vector of [2000:50:5000], you can change it to something like [2000:50:5000] +10. Keep trying different increments until you find one that works.
1 Comment
Image Analyst
on 7 Aug 2014
Did you see in the answer where it said " For previous releases, please read below for any possible workarounds :"???
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!