texture.pattern Function (GPL)

Syntax

texture.pattern(<algebra>)

or

texture.pattern(texture.pattern.<pattern constant>)

or

texture.pattern(<statistic function>)

<algebra>. Graph algebra using one categorical variable or a blend of categorical variables. Each unique variable value results in a different pattern. For example, if you were creating a stacked bar chart, the argument of the texture.pattern function would be the variable that controls the stacking. Each stack segment would have a different pattern.

<pattern constant>. A constant indicating a specific pattern, such as stripes. See the topic Pattern Constants (GPL) for more information.

<statistic function>. A statistic function.

Description

Controls the fill pattern of the associated graphic element. The color of the lines in the pattern is specified by color.exterior. The color of the pattern's background is specified by color.interior. texture.pattern.solid contains no lines or foreground. Therefore, using texture.pattern.solid results in a solid element whose color is specified by color.interior.

Examples

Figure 1. Example: Specifying a pattern
ELEMENT: line(position(x*y), texture.pattern(texture.pattern.checkered))
Figure 2. Example: Using the values of a variable to control pattern
ELEMENT: point(position(x*y), texture.pattern(z))

Statistic Functions

See GPL Functions .