필터 지우기
필터 지우기

How to map just USA border (Conus) and not the states with the usamap or worldmap?

조회 수: 1 (최근 30일)
Andrea
Andrea 2016년 11월 28일
답변: Gabriella Jardine 2017년 5월 26일
Hi,
My problem is usamap plots states as well. Or cut part of the southern states when I just plotted the orders. Worldmap, plotrs the whole USA including alaska, etc. How can I plot the border of just CONUS without the states? And then plot my data (lat,lon,data) on top of that? Thanks, I attached the pic that usamap gives me.

답변 (1개)

Gabriella Jardine
Gabriella Jardine 2017년 5월 26일
Hi, don't know if you've found a way to do it, but I use a different vector shape than the standard one provided in Matlab, downloaded from here: http://www.naturalearthdata.com/downloads
Download which ever resolution file is suitable (e.g. 1:50 m Physical Coastline), save it in your MATLAB Area and add the folder to your paths. Then use something like:
coast = shaperead('ne_50m_coastline', 'UseGeoCoords', true); %creates shape file from natural earth folder
figure;
worldmap([27,50],[-125,-70])
geoshow(coast2, 'Color', [0 0 0]) %This plots the outline in black, can be altered as you wish.
%plot data - must be in decimal degrees and longitude values are negative.
scatterm(lat,long,Size,Colour)

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by