MCPcopy Create free account
hub / github.com/matplotlib/matplotlib / __init__

Method __init__

lib/mpl_toolkits/axisartist/grid_finder.py:106–118  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected