class_docstr: A transform defined by two user-set functions.
class_docstr_tok: ["A","transform","defined","by","two","user-set","functions","."]
docstr: Parameters
  ----------
  forward, backward : callable
      The forward and backward transforms, taking ``x`` and ``y`` as
      separate arguments and returning ``(tr_x, tr_y)``.
docstr_tok: ["Parameters","--","--","--","--","--","forward",",","backward",":","callable","The","forward","and","backward","transforms",",","taking","``","x","``","and","``","y","``","as","separate","arguments","and","returning","``","(","tr_x",",","tr_y",")","``","."]
code: def __init__(self, forward, backward):
      """
      Parameters
      ----------
      forward, backward : callable
          The forward and backward transforms, taking ``x`` and ``y`` as
          separate arguments and returning ``(tr_x, tr_y)``.
      """
      # The normal Matplotlib convention would be to take and return an
      # (N, 2) array but axisartist uses the transposed version.
      super().__init__()
      self._forward = forward
      self._backward = backward
  
imports: import numpy
  from matplotlib import ticker
  from matplotlib.transforms import Bbox, Transform
label_desc: Use image node_id 1 to create a new _User2DTransform object from inherited base classes: Transform with example: obj = _User2DTransform(forward, backward)