How to map just USA border (Conus) and not the states with the usamap or worldmap?
9 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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)
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!