HatchFilling

HatchFilling[]

is a two-dimensional graphics directive that specifies that faces of polygons and other filled graphics objects are to be drawn using closely spaced parallel lines.

HatchFilling["name"]

uses the specified line hatching "name".

HatchFilling[θ]

draws parallel lines with an angle θ.

HatchFilling[θ,r]

draws parallel lines with absolute thickness r.

HatchFilling[θ,r,d]

draws parallel lines with gaps of absolute thickness d.

Details

  • HatchFilling is also known as hatch or striped pattern.
  • HatchFilling is typically used to fill twodimensional polygons and areas with stripes.
  • Possible line hatching includes:
  • "Diagonal"diagonal lines
    "Horizontal"horizontal lines
    "Vertical"vertical lines
  • HatchFilling[θ,r,d] specifies that faces of filled graphics objects are to be drawn using parallel lines with an angle θ from the horizontal, a thickness r and distance d.
  • HatchFilling[] is effectively equivalent to HatchFilling[Pi/4].

Examples

open allclose all

Basic Examples  (3)

Apply a hatch filling to a disk:

Fill from a curve to the axis:

Plot the US with hatch filling:

Scope  (12)

Basic Uses  (6)

Apply hatch filling to graphics primitives:

Apply hatch filling to a plot:

Apply hatch filling to a chart:

Style a geometric region:

Show a schematic outline map:

Summary box:

Specification  (6)

HatchFilling with no arguments draws parallel lines in a angle:

Draw parallel lines at an angle θ in radians:

Specify the angle in degrees:

Draw parallel lines with varying thickness:

Draw parallel lines with varying spacing:

Use a custom color:

Use predefined horizontal lines:

Diagonal lines:

Vertical lines:

Applications  (6)

Technical Drawing  (3)

Hatch patterns:

Cross-hatching patterns:

A mechanical drawing:

Design Patterns  (2)

Embossed line patterns:

Vector repeat patterns:

Visualization  (1)

Plot a confidence interval:

Neat Examples  (1)

Use hatch filling to draw African countries:

Show a map:

Show a map with boundaries:

Introduced in 2020
 (12.1)