scatter
-
For examples, see Matlab Graphics - Scatter Plots.
-
scatter(x,y,<sz>,<c>)creates a scatter plot with circles at the locations specified by the vectors x and y, sized by sz and colored by c- Size:
- To plot every circle at the same size, specify sz as a scalar
- To use a different size per point, specify sz as a vector with the same length as x and y
- Color:
- To use a single color for every circle, specify c as a color name or an RGB triplet
- For varying colors, specify c as a vector or a three-column matrix of RGB triplets
- Here a vector indexes into the MATLAB Graphics Colormap
- Size:
-
scatter(___,'filled')fills in the circles -
scatter(___,mkr)specifies the marker type -
scatter(___,Name,Value)modifies the chart using one or more name-value pair arguments -
scatter(ax,___)plots into the axes specified by ax instead of the current axes -
s = scatter(___)returns the Scatter object