For the latest version of JMP Help, visit JMP.com/help.


Publication date: 11/29/2021

Add Fill Patterns

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

Image shown here

right slant light

Image shown here

vertical light

Image shown here

horizontal light

Image shown here

grid light

Image shown here

hatch light

Image shown here

h wave light

Image shown here

v wave light

Image shown here

hollow circle

Image shown here

left slant medium

Image shown here

right slant medium

Image shown here

vertical medium

Image shown here

horizontal medium

Image shown here

grid medium

Image shown here

hatch medium

Image shown here

h wave medium

Image shown here

v wave medium

Image shown here

filled circle

Image shown here

left slant heavy

Image shown here

right slant heavy

Image shown here

vertical heavy

Image shown here

horizontal heavy

Image shown here

grid heavy

Image shown here

hatch heavy

Image shown here

h wave heavy

Image shown here

v wave heavy

Image shown here

diamond

Image shown here

left slant heavy b

Image shown here

right slant heavy b

Image shown here

random

Image shown here

square

Image shown here

square offset

Image shown here

wide

Image shown here

tall

Image shown here

checkerboard

Image shown here

grid dots

Image shown here

triangle up

Image shown here

triangle down

Image shown here

triangle left

Image shown here

triangle right

Image shown here

weave light

Image shown here

weave heavy

Image shown here

honeycomb

Image shown here

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).