imat_vtkplot/text3 (+FEA)


Purpose

Place arbitrary 3-D text on the plot.

Syntax

hplot.text3(coord,label)
hplot.text3(color,label,'scale',scale,'color',color)

Description

This method displays arbitrary 3D text at the specified locations on the plot.

COORD is an Nx3 matrix of coordinates at which to place the text.

LABEL is a string or cell array of strings containing the text strings to place on the plot.

SCALE is an optional numeric scalar specifying the text size. The default is 1.

COLOR is an optional Nx3 numeric matrix containing the text colors as RGB values. These values must be between 0 and 1. The default color is black ([0 0 0]).

Examples

>> hplot.text3([0 0 0],'label_text')
>> hplot.text3([0 0 0; 1 1 1],{'label 1'; 'label 2'},'scale',3,'color',[1 0 0; 1 0 0])      % Make text red

See also

imat_vtkplot/text