Plot individual countries with matlab mapping toolbox -


i draw map of specific countries in matlab using mapping toolbox. specifically, draw map of austria , switzerland only.

i have tried following:

ax = worldmap({'austria','switzerland'}); land = shaperead('landareas', 'usegeocoords', true); geoshow(ax, land, 'facecolor', [0.5 0.7 0.5]) lakes = shaperead('worldlakes', 'usegeocoords', true); geoshow(lakes, 'facecolor', 'blue') rivers = shaperead('worldrivers', 'usegeocoords', true); geoshow(rivers, 'color', 'blue') 

which produces

enter image description here

however, looks more this, countries specified, without other european countries included in figure. possible in matlab?

possible, yes, need shapefile, containing information individual countries.

worldmap sets boundaries of map. other information plot comes out of shapefile load , doesn't check countries set in worldmap - , if did, couldn't information, because if check land you'll see individual countries in europe aren't listed. either specific shapefiles 2 countries, or shapefile containing data europe , pull out details of 2 countries it.

a simple example using builtin data: loads set of data states extracts , plots texas:

ax = worldmap({'usa'}); land = shaperead('usastatehi', 'usegeocoords', true); n = strcmp({land.name},'texas'); geoshow(ax, land(n)) 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -