发布日期: 03/04/2025

Add Fill Patterns

In a JMP graph, Fill Pattern() sets the pattern for filled areas.

Matrix Example

Specify a mask (a matrix of values between 0 and 1) or an image. Each value in the matrix creates a pixel.

win = New Window( "Example",
	Graph Box(
		Fill Pattern(
			[1 0.5 0 0, 0.5 0 0 1, 0 0 1 0.5, 0 1 0.5 0]
		);
		Polygon( [10 30 90], [88 22 44] );
	)
);

Named Pattern Example

Specify a name in quotation marks that corresponds to a pattern shown in Table 12.3.

win = New Window( "Named Pattern Example",
	Graph Box(
		Fill Pattern( "vertical light" );
		Polygon( [10 30 90], [88 22 44] );
	)
);

Graphic Example

Specify an image in quotation marks. If the image is not installed on the viewer’s computer, question marks appear in the shape.

win = New Window( "Graphic Example",
	Graph Box(
		Fill Pattern( Open( "$SAMPLE_IMAGES/pi.gif", "gif" ) );
		Polygon( [10 30 90], [88 22 44] );
	)
);

Table 12.3 Fill Patterns

Pattern Name

Pattern

left slant light

此处显示图片

right slant light

此处显示图片

vertical light

此处显示图片

horizontal light

此处显示图片

grid light

此处显示图片

hatch light

此处显示图片

h wave light

此处显示图片

v wave light

此处显示图片

hollow circle

此处显示图片

left slant medium

此处显示图片

right slant medium

此处显示图片

vertical medium

此处显示图片

horizontal medium

此处显示图片

grid medium

此处显示图片

hatch medium

此处显示图片

h wave medium

此处显示图片

v wave medium

此处显示图片

filled circle

此处显示图片

left slant heavy

此处显示图片

right slant heavy

此处显示图片

vertical heavy

此处显示图片

horizontal heavy

此处显示图片

grid heavy

此处显示图片

hatch heavy

此处显示图片

h wave heavy

此处显示图片

v wave heavy

此处显示图片

diamond

此处显示图片

left slant heavy b

此处显示图片

right slant heavy b

此处显示图片

random

此处显示图片

square

此处显示图片

square offset

此处显示图片

wide

此处显示图片

tall

此处显示图片

checkerboard

此处显示图片

grid dots

此处显示图片

triangle up

此处显示图片

triangle down

此处显示图片

triangle left

此处显示图片

triangle right

此处显示图片

weave light

此处显示图片

weave heavy

此处显示图片

honeycomb

此处显示图片

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).