MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / hatch

Method hatch

lib/matplotlib/path.py:1083–1091  ·  view source on GitHub ↗

Given a hatch specifier, *hatchpattern*, generates a `Path` that can be used in a repeated hatching pattern. *density* is the number of lines per unit square.

(hatchpattern, density=6)

Source from the content-addressed store, hash-verified

1081 @staticmethod
1082 @lru_cache(8)
1083 def hatch(hatchpattern, density=6):
1084 """
1085 Given a hatch specifier, *hatchpattern*, generates a `Path` that
1086 can be used in a repeated hatching pattern. *density* is the
1087 number of lines per unit square.
1088 """
1089 from matplotlib.hatch import get_path
1090 return (get_path(hatchpattern, density)
1091 if hatchpattern is not None else None)
1092
1093 def clip_to_bbox(self, bbox, inside=True):
1094 """

Callers 3

get_hatch_pathMethod · 0.80
create_hatchMethod · 0.80
writeHatchesMethod · 0.80

Calls 1

get_pathFunction · 0.90

Tested by

no test coverage detected