Mapping Toolbox | ![]() ![]() |
Inset Maps
Inset maps are often used to display widely separated areas, generally at the same scale. You can create inset maps by adding multiple axes to a figure and defining appropriate map projections for each. If you want to ensure that the scale of each of the maps is the same, use axesscale
to resize them. Here is an example of an inset map of California at the same scale as the map of South America, graphically relating the size of the continent to what may be a more familiar region.
h1 = worldmap('south america'); h2 = axes('pos',[.5 .2 .1 .1]); usamap('californiaonly','lineonly') setm(h2,'FFaceColor','w') mlabel; plabel; gridm % toggle off axes(h2) axesscale(h1) hidem([h1 h2])
![]() | Working with Objects by Name | Graphic Scale | ![]() |