Plot line in geographic coordinates
geoplot(
plots a line in a geographic axes with vertices at the latitude-longitude
locations specified (in degrees) by the vectors lat
,lon
)lat
and
lon
. The lat
and
lon
inputs must be the same size. By default,
geoplot
draws a solid line, with no markers, using colors
specified by the ColorOrder
property of the geographic axes
object.
geoplot(lat1,lon1,...,latN,lonN)
combines the plots
specified by several sets of latitude-longitude locations.
geoplot(lat1,lon1,LineSpec1,...,latN,lonN,LineSpecN)
combines the plots specified by several sets of latitude-longitude locations,
with a separate LineSpec
for each line.
geoplot(___,
specifies properties of the chart line using one or more
Name,Value
)Name,Value
pair arguments.
geoplot(
plots in
the geographic axes specified by gx
,___)gx
instead of the current
axes.
returns
a column vector of Chart Line objects. Each object corresponds to a plotted
line. Use h
= geoplot(___)h
to modify the properties of the Chart line
objects.
Plot 3-D geographic data using the Mapping Toolbox™ functions geoglobe
(Mapping Toolbox) and geoplot3
(Mapping Toolbox).
To customize certain aspects of your plot, use properties of the geographic axes. For a list of properties, see GeographicAxes Properties.
To plot additional data in the geographic axes, use the hold
on
command.
You cannot plot data that requires Cartesian axes in a geographic axes.
When you plot on geographic axes, the
geoplot
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.
[1] Alignment of boundaries and region labels are a presentation of the feature provided by the data vendors and do not imply endorsement by MathWorks®.