imat_fem/labelnodes


Purpose

Display node labels on FEM geometry.

Syntax

fem_labelnodes(fem)
h=fem_labelnodes(fem,handle,nodes,color)

Description

FEM_LABELNODES will display node labels on the supplied IMAT_FEM object FEM. NODES is an optional vector of node labels to plot. If it is not supplied, LABELNODES will display node labels for all of the nodes in FEM. If nodes supplied in NODES are not found in FEM, a warning will be issued and only those node labels found in FEM will be displayed. H is an optional figure or uipanel handle. If it is supplied, node labels will be displayed on the supplied figure/uipanel. Otherwise a new figure will be generated. If a handle referencing a FEM is supplied, then FEM is not a required input. COLOR is an optional argument to specify the node label color. By default, the node color will be used. COLOR may be specified either as a numeric or as a string. If it is a string containing the color name (i.e. 'blue'), that is all that is required. To specify the color using a number, pass in a string 'Color', followed by the number. A scalar number represents a color in I-deas notation (see ideas_colormap), and a 1x3 vector specifies the color in RGB notation.

HP is the handle to the uipanel on which the FEM node labels were displayed.

Examples

>> labelnodes(fem)
>> h=labelnodes(fem,'green');    % Draw nodes labels in green
>>

See Also

imat_shp/plot, imat_fem/plot