M-File Help: plot_point View code for plot_point

plot_point

Draw a point

plot_point(p, options) adds point markers to the current 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
'label', L Label for point

Additional options to PLOT can be used:

Examples

Simple point plot

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

Plot points with markers

plot_point(P, '*');

Plot points with markers

plot_point(P, 'o', 'MarkerFaceColor', 'b');

Plot points with square markers and labels 1 to 4

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

Plot points with circles and annotations P1 to P4

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

Notes

See also

plot, text


 

© 1990-2014 Peter Corke.