imat_vtkplot/setcontourcomponent (+FEA)


Purpose

Set the contour display component.

Syntax

hplot.setcontourcomponent(contour[,comp])

Description

SETCONTOURCOMPONENT sets the contour result component being displayed.

CONTOUR is a string, either 'result', 'shape', or 'element'. If 'result' is used, the result contour will be displayed. If 'shape' is used, the shape contour will be displayed. If 'element' is used, the contour will use element colors.

COMP is an optional input, either a string containing the component or a numeric scalar containing the index into the component list found based on the string used in CONTOUR. The component lists are:

HPLOT.contour.resultcomponents
HPLOT.contour.shapecomponents

If COMP is not provided, the current component index will be used.

Examples

>> h.setcontourcomponent('shape','Y')
>> h.setcontourcomponent('result',2)
>> h.setcontourcomponent('element')