(self, hatch, density)
| 47 | |
| 48 | class VerticalHatch(HatchPatternBase): |
| 49 | def __init__(self, hatch, density): |
| 50 | self.num_lines = int((hatch.count('|') + hatch.count('+')) * density) |
| 51 | self.num_vertices = self.num_lines * 2 |
| 52 | |
| 53 | def set_vertices_and_codes(self, vertices, codes): |
| 54 | steps, stepsize = np.linspace(0.0, 1.0, self.num_lines, False, |