imat_vtkplot/text (+FEA)


Purpose

Place arbitrary 3-D text on the plot.

Syntax

hplot.text(coord,label)

Description

This method displays arbitrary 2D text at the specified location on the plot.

COORD is a 1x2 vector of normalized coordinates, where (0,0) is the lower left corner of the window.

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

See VTK_TEXT for a list of properties and valid values.

This method returns a VTK_TEXT object that lets you modify the text, position, and attributes. To delete the text from the figure, use delete() on this object.

Examples

>> ht=hplot.text([.1 .1 .4 .2],'label_text')
>> hplot.text([0 0],'label_text','color',[1 0 0],'horizontalalignment','left')

See also

vtk_text, imat_vtkplot/text3, ideas_colormap