Convey information about your data or enhance the display of the data by customizing your map. For example, you can add titles, change the appearance of the graticule, or add annotations. You can also provide geographic context for your data by using basemaps.
Customize Map Axes
Limits and Ticks
|Set or query geographic limits
|Set or query geographic tick label format (Since R2019a)
Labels and Annotation
|Add subtitle to plot (Since R2020b)
|Add legend to axes
|Add text descriptions to data points
|View and set current colormap
|Colorbar showing color scale
|Set colormap limits (Renamed from
caxis in R2022a)
Frame, Grid, and Labels
|Remove white space around
|Control frame of
|Control graticule lines on
|Control parallel labels on
|Control meridian labels on
|Display meridian labels on
axesm-based map using range of 0 to 360 degrees
|Add north arrow to
|Add or modify graphic scale on
|Project text onto
|Rotate text to projected graticule on
- Add Labels and Annotations to Map Axes
Convey information about a map by adding a title, a legend, text, and data tips.
- Customize Appearance of Map Axes
Customize map axes by changing the tick label format, the geographic limits, the appearance of the graticule line, and the colors of fonts.
- Create Map of Quadrangle Using Cartographic Map Layout
Cartographic map layouts are useful when creating static maps or when preparing maps for publication.
- The Map Frame
A map frame is the outline of the limits of a map. The shape of the frame is characteristic of the projection.
- Map and Frame Limits
The map latitude and longitude limits define the extents of geodata to be displayed. The frame limits control how the frame fits around the displayed data.
- Map Limit Properties
Map limits have properties that provide a convenient and intuitive way to specify your map projection origin and frame limits. Learn how to set these properties, and when you should avoid the properties.
- The Map Grid
The map grid is the display of meridians and parallels. The spacing and curvature of the grid lines are characteristic of the projection.
- Inset Maps
Inset maps provide context to maps by including overviews at smaller scales.
- Customize Appearance of Vector Basemaps
Customize the appearance of vector basemaps by specifying a predefined style, by specifying a URL or JSON file, or by editing a predefined style.
- Create Common Plots over Basemap Images
Display a variety of plots over basemap images, including digraphs, contours, images, and 3-D surfaces.
- Change Projection of Basemap Image
Geographic axes display data over basemaps using a Mercator projection. This example shows how to display data over basemaps using different projections.
- Use Basemaps in Offline Environments
Display data over basemaps when MATLAB® has temporary or no internet access.
- Create Base Layer from OpenStreetMap Data
Provide geographic context for your data by creating a base layer from data stored in an OpenStreetMap® file. (Since R2023b)
- Display Data over Basemaps When Internet Access Is Intermittent
This example shows how to display data over a basemap, while accounting for intermittent internet access, by reading a saved basemap image from a file.