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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -