Products & Services Solutions Academia Support User Community Company

Learn more about Mapping Toolbox   

scatterm - Project point markers with variable color and area

Syntax

scatterm(lat,lon,s,c)
scatterm(lat,lon)
scatterm(lat,lon,s)
scatterm(...,m)
scatterm(...,'filled')
h = scatterm(...)

Description

scatterm(lat,lon,s,c) displays colored circles at the locations specified by the vectors lat and lon (which must be the same size). The area of each marker is determined by the values in the vector s (in points2) and the colors of each marker are based on the values in c. s can be a scalar, in which case all the markers are drawn the same size, or a vector the same length as lat and lon.

When c is a vector the same length as lat and lon, the values in c are linearly mapped to the colors in the current colormap. When c is a length(lat)-by-3 matrix, the values in c specify the colors of the markers as RGB values. c can also be a color string.

scatterm(lat,lon) draws the markers in the default size and color.

scatterm(lat,lon,s) draws the markers with a single color.

scatterm(...,m) uses the marker m instead of 'o'.

scatterm(...,'filled') fills the markers.

h = scatterm(...) returns handles of patches created.

Examples

Plot the seamount MATLAB demo data as symbols with the color proportional to the height.

load seamount
worldmap([-49 -47.5],[-150 -147.5])
scatterm(y,x,5,z)
scaleruler
set(gca,'Visible','off')

See Also

stem3m

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS