(self, x0, y0, width, height, mutation_size)
| 2576 | self.pad = pad |
| 2577 | |
| 2578 | def __call__(self, x0, y0, width, height, mutation_size): |
| 2579 | pad = mutation_size * self.pad |
| 2580 | width, height = width + 2 * pad, height + 2 * pad |
| 2581 | # boundary of the padded box |
| 2582 | x0, y0 = x0 - pad, y0 - pad |
| 2583 | a = width / math.sqrt(2) |
| 2584 | b = height / math.sqrt(2) |
| 2585 | trans = Affine2D().scale(a, b).translate(x0 + width / 2, |
| 2586 | y0 + height / 2) |
| 2587 | return trans.transform_path(Path.unit_circle()) |
| 2588 | |
| 2589 | @_register_style(_style_list) |
| 2590 | class RArrow: |
nothing calls this directly
no test coverage detected