MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / hatch

Method hatch

site-packages/matplotlib/path.py:932–940  ·  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

930 @staticmethod
931 @lru_cache(8)
932 def hatch(hatchpattern, density=6):
933 """
934 Given a hatch specifier, *hatchpattern*, generates a Path that
935 can be used in a repeated hatching pattern. *density* is the
936 number of lines per unit square.
937 """
938 from matplotlib.hatch import get_path
939 return (get_path(hatchpattern, density)
940 if hatchpattern is not None else None)
941
942 def clip_to_bbox(self, bbox, inside=True):
943 """

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