How to exclude a continent from worldmap in MATLAB (eg antarctica)
조회 수: 3 (최근 30일)
이전 댓글 표시
I have been trying the following to attempt removing Antarctica from the world map but the output shifts the worldmap. I used:
worldmap({'America','Asia','Europe','Africa','Australia'});
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168598/image.jpeg)
댓글 수: 0
채택된 답변
Matt Sprague
2018년 1월 11일
The worldmap function constructs map axes for given regions in the world. It specifies the map axes limits based on the regions input. To remove Antarctica while not shifting the region displayed on the axes, first display the full worldmap and then remove the Antarctica section of your plot using logical indexing. An example using the coastlines data is below using the rough cutoff of 63 degrees south:
worldmap('World')
load coastlines
antarcticaregion = coastlat < -63;
plotm(coastlat(~antarcticaregion),coastlon(~antarcticaregion))
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Geographic Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!