| 8528 | |
| 8529 | |
| 8530 | class _Translation(mtransforms.Transform): |
| 8531 | input_dims = 1 |
| 8532 | output_dims = 1 |
| 8533 | |
| 8534 | def __init__(self, dx): |
| 8535 | self.dx = dx |
| 8536 | |
| 8537 | def transform(self, values): |
| 8538 | return values + self.dx |
| 8539 | |
| 8540 | def inverted(self): |
| 8541 | return _Translation(-self.dx) |
| 8542 | |
| 8543 | |
| 8544 | @image_comparison(['secondary_xy.png'], style='mpl20', |
no outgoing calls
searching dependent graphs…