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  (13)

Basic Uses  (7)

Apply hatch filling to graphics primitives:

Apply hatch filling to a plot:

Apply hatch filling to a chart:

Style a geometric region:

Apply hatch filling to an Image:

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:

Wolfram Research (2020), HatchFilling, Wolfram Language function, https://reference.wolfram.com/language/ref/HatchFilling.html.

Text

Wolfram Research (2020), HatchFilling, Wolfram Language function, https://reference.wolfram.com/language/ref/HatchFilling.html.

CMS

Wolfram Language. 2020. "HatchFilling." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/HatchFilling.html.

APA

Wolfram Language. (2020). HatchFilling. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HatchFilling.html

BibTeX

@misc{reference.wolfram_2024_hatchfilling, author="Wolfram Research", title="{HatchFilling}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/HatchFilling.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_hatchfilling, organization={Wolfram Research}, title={HatchFilling}, year={2020}, url={https://reference.wolfram.com/language/ref/HatchFilling.html}, note=[Accessed: 21-December-2024 ]}