Display map data without projection
mapshow(
displays the coordinate vectors x
,y
)x
and
y
as lines. You can optionally display the coordinate
vectors as points or polygons by using the DisplayType
name-value pair argument.
mapshow(
displays the vector
geographic features stored in the geographic data structure
S
)S
as points, multipoints, lines, or polygons according
to the 'Geometry'
field of S
.
If S
contains 'X'
and
'Y'
fields, then these fields are used
directly to plot features in map coordinates.
If S
contains 'Lat'
and
'Lon'
fields, then the coordinates are
projected with the Plate Carrée projection and a warning is
issued.
You can optionally specify symbolization rules using the
SymbolSpec
name-value pair argument.
mapshow(
displays a geolocated data grid, x
,y
,Z
)Z
. You can optionally
display the data as a surface, mesh, texture map, or contour by using the
DisplayType
name-value pair argument.
mapshow(
displays a regular data grid, Z
,R
)Z
, with referencing object
R
. You can optionally display the data as a surface,
mesh, texture map, or contour by using the DisplayType
name-value pair argument. If DisplayType
is
'texturemap'
, then mapshow
displays
the image as a texture map on a zero-elevation surface (by setting
ZData
values to 0).
mapshow(
display a geolocated image as a texture map on a zero-elevation surface. The
geolocated image can be a truecolor, grayscale, or binary image,
x
,y
,X
,cmap
)I
, or an indexed image X
with
colormap cmap
. x
and
y
are geolocation arrays in map coordinates. Examples
of geolocated images include a color composite from a satellite swath or an
image originally referenced to a different coordinate system.
mapshow(
displays data from
the file specified according to the type of file format.filename
)
mapshow(___,
modifies the displayed map by using name-value pair arguments to set the
Name,Value
)DisplayType
and SymbolSpec
parameters. You can also use name-value pairs to set any MATLAB® graphics properties. Parameter names can be abbreviated, and case
does not matter.
mapshow(
sets the
parent axes to ax
,___)ax
.
returns
a handle to a MATLAB graphics object.h
= mapshow(___)
If you do not want mapshow
to draw on top of an existing
map, create a new figure or subplot before calling it.
You can use mapshow
to display vector data in an
axesm
figure. However, you should not subsequently
change the map projection using setm
.
If you display a polygon, do not set 'EdgeColor'
to either
'flat'
or 'interp'
. This combination
may result in a warning.
If S
is a geostruct (has 'Lat'
and
'Lon'
fields), it may be more appropriate to use
geoshow
to display them. You can
project latitude and longitude coordinate values to map coordinates by
displaying with geoshow
on a map axes.