Parameters ---------- forward, backward : callable The forward and backward transforms, taking ``x`` and ``y`` as separate arguments and returning ``(tr_x, tr_y)``.
(self, forward, backward)
| 104 | input_dims = output_dims = 2 |
| 105 | |
| 106 | def __init__(self, forward, backward): |
| 107 | """ |
| 108 | Parameters |
| 109 | ---------- |
| 110 | forward, backward : callable |
| 111 | The forward and backward transforms, taking ``x`` and ``y`` as |
| 112 | separate arguments and returning ``(tr_x, tr_y)``. |
| 113 | """ |
| 114 | # The normal Matplotlib convention would be to take and return an |
| 115 | # (N, 2) array but axisartist uses the transposed version. |
| 116 | super().__init__() |
| 117 | self._forward = forward |
| 118 | self._backward = backward |
| 119 | |
| 120 | def transform_non_affine(self, values): |
| 121 | # docstring inherited |