M-File Help: plot_point View code for plot_point

plot_point

point features

plot_point(p, options) adds point markers to a plot, where p (2xN) and each column is the point coordinate.

Options

'textcolor', colspec Specify color of text
'textsize', size Specify size of text
'bold' Text in bold font.
'printf', {fmt, data} Label points according to printf format string and corresponding element of data
'sequence' Label points sequentially

Additional options are passed through to PLOT for creating the marker.

Examples

Simple point plot

P = rand(2,4);
plot_point(P);

Plot points with markers

plot_point(P, '*');

Plot points with square markers and labels

plot_point(P, 'sequence', 's');

Plot points with circles and annotations

data = [1 2 4 8];
plot_point(P, 'printf', {' P%d', data}, 'o');

See also

plot, text


 

© 1990-2012 Peter Corke.