Filter
Add a filter attribute to a plot.
Syntax
model.result(
<pgtag>
).feature(
<ftag>
).create(
<atag>
,
"Filter");
model.result(
<pgtag>
).feature(
<ftag>
).feature(
<atag>
).set(
property
,
<value>
);
Description
model.result
(<pgtag>
).feature(
<ftag>
).create(
<atag>
,"Filter")
creates an element filter attribute named
<atag>
belonging to the plot feature
<ftag>
.
Use filters to limit plots to elements satisfying a condition.
Filters can be added to arrow plots, contour plots, isosurface plots, line plots, mesh plots, slice plots, surface plots, and volume plots.
The following properties are available:
Table 7-31:
Valid Property/Value Pairs for Filter Attributes
Property
Value
Default
Description
expr
String
1
The logical expression that must be satisfied for an element to be included in the plot.
nodespec
all
|
any
|
xor
|
smooth
smooth
The set of nodes in an element that have to satisfy the logical expression for it to be included in the plot. The
smooth
option creates smooth edges by "cutting" through elements.