Create map axes and
axesm-based maps; set properties of maps
Mapping Toolbox™ provides several ways to create map displays, including
map axes (since R2023a) and
For a comparison of map axes and
maps, including when to use each type of display, see Choose a 2-D Map Display.
Create Map Axes
|axesm-Based Map Properties||Control |
Access and Modify
axesm-Based Map Properties
|Query projection structure of current |
|Query properties of |
|Set properties of |
|Determine if axes is |
|Toggle display of coordinate axes on |
Manage Objects on
|Clear current |
|Clear graphics objects from |
|Handles of objects on |
|GUI for selecting objects on |
|Hide objects on |
|Determine if object is projected on |
|Names of objects on |
|Show objects on |
- Create Common Plots Using Map Axes
Display data in map axes using point, line, and polygon plots, scatter plots, and bubble charts.
- Change Projection and Projection Parameters
Map axes automatically reproject plotted data when you change the map projection or projection parameters.
- Create Map Axes in an App
Use App Designer to create an app that includes a map axes object and components that control the map projection and the visibility of plotted data.
- axesm-Based Maps
axesm-based map contains standard properties of MATLAB® graphics axes, with additional properties related to projections, scale, and positioning in geographic coordinates.
- Create Maps of World and US Regions
Create maps of continents, countries, and US states by using the
usamapfunctions. The functions automatically select projections based on the specified region.
- Switch Between Projections
You can change the map projection. Usually the new map projection displays the same part of the world, and you can adjust the
axesm-based map properties to refine the map appearance.
- Reprojection of Graphics Objects
Many objects on
axesm-based maps can be automatically reprojected based on changes to the map projection or to some map properties.
- Change Map Projections Using geoshow
You can display geospatial data on a regular axes, not an
axesm-based map, using a linear mapping of longitude and latitude to x- and y-coordinates.