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)
| 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 | """ |
no test coverage detected