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