M-File Help: plot_point

M-File Help: plot_point | View code for plot_point

# plot_point

a feature 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

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 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

- The point(s) is added to the current plot.
- 2D points only.

## See also

plot, text

© 1990-2014 Peter Corke.