Mapping Toolbox    
plot3m

Project line objects onto current map axes in 3-D space

Syntax

Description

plot3m is the mapping equivalent of the MATLAB plot3 function.

h = plot3m(lat,lon,z) displays projected line objects on the current map axes. lat and lon are the latitude and longitude coordinates, respectively, of the line object to be projected. Note that this ordering is conceptually reversed from the MATLAB line command, because the vertical (y) coordinate comes first. However, the ordering latitude, then longitude, is standard geographic usage. lat and lon must be the same size, and in the AngleUnits of the map axes. z is the altitude data associated with each point in lat and lon. The object handle for the displayed line can be returned in h.

h = plot3m(lat,lon,linetype) allows the specification of the line style, where linetype is any string recognized by the MATLAB line command.

h = plot3m(lat,lon,PropertyName,PropertyValue,...) allows the specification of any number of property/value pairs for any properties recognized by the MATLAB line command except for XData, YData, and ZData.

Examples

See Also
linem
Project line objects onto current map axes.
plot3
Plot lines and points in 3-D space (see online MATLAB Function Reference)
plotm
Project lines onto current map axes in 2-D space


  plabel plotm