geoaxes
Description
geoaxes
creates a geographic axes in the current figure
using default property values, and makes it the current axes.
A geographic axes displays data in geographic coordinates (latitude/longitude) on a map. The map is live, that is, you can pan to view other geographic locations and zoom in and out on the map to view regions in more detail.
geoaxes(
specifies values
for properties of the Name,Value
)GeographicAxes
object
using one or more name-value pair arguments.
geoaxes(
creates the geographic axes in the figure, panel, or tab specified by
parent
,___)parent
, instead of in the current figure.
returns the gx
= geoaxes(___)GeographicAxes
object. Use gx
to modify properties of the axes after you create it.
geoaxes(
makes the gx
)GeographicAxes
object gx
the
current axes.
Examples
Input Arguments
Output Arguments
Tips
Specify custom basemaps using the Mapping Toolbox™ function
addCustomBasemap
(Mapping Toolbox).Add a basemap picker to the axes toolbar by using the Mapping Toolbox function
addToolbarMapButton
(Mapping Toolbox).Plot 3-D geographic data using the Mapping Toolbox functions
geoglobe
(Mapping Toolbox) andgeoplot3
(Mapping Toolbox).Some graphics functions reset axes properties when plotting. To plot additional data in a geographic axes, use the
hold on
command before calls to plotting functions.You cannot plot data that requires Cartesian axes in a geographic chart.
When you plot on geographic axes, the
geoaxes
function assumes that coordinates are referenced to the WGS84 coordinate reference system. If you plot using coordinates that are referenced to a different coordinate reference system, then the coordinates may appear misaligned.
Version History
Introduced in R2018b
See Also
Functions
axes
|figure
|cla
|gca
|geoplot
|geoscatter
|geolimits
|geobasemap