Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Andrea
Andrea le 28 Nov 2016
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.

Réponses (1)

Gabriella Jardine
Gabriella Jardine le 26 Mai 2017
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)

Catégories

En savoir plus sur Geographic Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by