M-File Help: trplot2 View code for trplot2

trplot2

Plot a planar transformation

trplot2(T, options) draws a 2D coordinate frame represented by the SE(2) homogeneous transform T (3x3).

H = trplot2(T, options) as above but returns a handle.

trplot2(H, T) moves the coordinate frame described by the handle H to the SE(2) pose T (3x3).

Options

'axis', A Set dimensions of the MATLAB axes to A=[xmin xmax ymin ymax]
'color', c The color to draw the axes, MATLAB colorspec
'noaxes' Don't display axes on the plot
'frame', F The frame is named {F} and the subscript on the axis labels is F.
'text_opts', opt A cell array of Matlab text properties
'handle', h Draw in the MATLAB axes specified by h
'view', V Set plot view parameters V=[az el] angles, or 'auto' for view toward origin of coordinate frame
'arrow' Use arrows rather than line segments for the axes
'width', w Width of arrow tips

Examples

trplot(T, 'frame', 'A')
trplot(T, 'frame', 'A', 'color', 'b')
trplot(T1, 'frame', 'A', 'text_opts', {'FontSize', 10, 'FontWeight', 'bold'})

Notes

See also

trplot


 

© 1990-2012 Peter Corke.