|
15 | 15 |
|
16 | 16 | import matplotlib as mpl |
17 | 17 | from . import (_path, artist, cbook, cm, colors as mcolors, docstring, |
18 | | - lines as mlines, path as mpath, transforms) |
| 18 | + hatch as mhatch, lines as mlines, path as mpath, transforms) |
19 | 19 | import warnings |
20 | 20 |
|
21 | 21 |
|
@@ -141,8 +141,8 @@ def __init__(self, |
141 | 141 | hatch : str, optional |
142 | 142 | Hatching pattern to use in filled paths, if any. Valid strings are |
143 | 143 | ['/', '\\', '|', '-', '+', 'x', 'o', 'O', '.', '*']. See |
144 | | - :doc:`/gallery/shapes_and_collections/hatch_demo` for the meaning |
145 | | - of each hatch type. |
| 144 | + :doc:`/gallery/shapes_and_collections/hatch_style_reference` for |
| 145 | + the meaning of each hatch type. |
146 | 146 | pickradius : float, default: 5.0 |
147 | 147 | If ``pickradius <= 0``, then `.Collection.contains` will return |
148 | 148 | ``True`` whenever the test point is inside of one of the polygons |
@@ -522,6 +522,8 @@ def set_hatch(self, hatch): |
522 | 522 | ---------- |
523 | 523 | hatch : {'/', '\\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} |
524 | 524 | """ |
| 525 | + # Use validate_hatch(list) after deprecation. |
| 526 | + mhatch._validate_hatch_pattern(hatch) |
525 | 527 | self._hatch = hatch |
526 | 528 | self.stale = True |
527 | 529 |
|
|
0 commit comments