Plots vectors or points (specified as longitude/latitude data) on the current map projection.
y A scalar or vector providing the latitude coordinates of the points to be connected.
outy (optional) Returns an array containing the projected latitude data in data coordinates (radians).
Distance Returns in a named variable the distance between the points provided as input to MAP_PLOTS. If two points are provided, Distance returns a scalar result. If multiple points are provided as input, Distance returns an array of distance values.
Km If present and nonzero, specifies that the distance returned by the Distance keyword be measured in kilometers. This is the default.
Miles If present and nonzero, specifies that the distance returned by the Distance keyword be measured in miles. Default is kilometers.
NoCircle If present and nonzero, specifies that straight lines be plotted between points. If set equal to zero (the default), MAP_PLOTS draws great circle lines between any two specified points.
Color Linestyle | Nodata Psym | Symsize Thick |
The coordinates for MAP_PLOTS must be given in longitude and latitude form.
The MAP_PLOTS routine can plot lines as straight lines or as great circle lines, which appear on most projections as curved lines and represent the minimum distance between two points on the globe.
CAUTION: The great circle lines depend on the accuracy of trigonometric functions, which for some very small longitude and latitude values or values close to 90 degrees can result in errors that can cause the great circle lines to be incorrectly drawn.
MAP, Range = [-150, 30, 30, 70] MAP_PLOTS, [-105.3, -0.1], [40.0, 51.5],$ Distance = d, /Miles, Color = 5, $ Psym = -2, Thick = 2