geoscatter
Scatter chart in geographic coordinates
Syntax
Description
geoscatter(
uses lat
,lon
,A
)A
to specify the area of each marker (in points^2). To
draw all the markers with the same size, specify A
as a
scalar. To draw the markers with different sizes, specify A
as a vector the same length as lat
and
lon
. If you do not specify A
,
geoscatter
uses the default size.
geoscatter(___,
creates a scatter plot where M
)M
specifies the marker used.
By default, geoscatter
uses circles as the marker.
geoscatter(___,
fills the markers.'filled'
)
geoscatter(___,
specifies properties of the scatter plot using one or more
Name,Value
)Name,Value
pair arguments. The property settings apply to
all the scatter plots.
geoscatter(
plots
into the geographic axes specified by gx
,___)gx
instead of into the
current axes.
returns the s
= geoscatter(___)Scatter
object. Use S
to
modify properties of the object after it is created.
Examples
Input Arguments
Output Arguments
Tips
To customize the geographic axes containing your scatter object, obtain the object's parent,
gx = s.Parent
, and modify its properties. For a list of properties, see GeographicAxes Properties.If you have Mapping Toolbox™, you can specify basemaps of your own choosing by using the
addCustomBasemap
function.When you plot on geographic axes, the
geoscatter
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
See Also
Functions
Properties
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®.