class_docstr: General class to hold a Secondary_X/Yaxis.
class_docstr_tok: ["General","class","to","hold","a","Secondary_X\/Yaxis","."]
docstr: Set how the secondary axis converts limits from the parent Axes.
  
  Parameters
  ----------
  functions : 2-tuple of func, or `Transform` with an inverse.
      Transform between the parent axis values and the secondary axis
      values.
  
      If supplied as a 2-tuple of functions, the first function is
      the forward transform function and the second is the inverse
      transform.
  
      If a transform is supplied, then the transform must have an
      inverse.
docstr_tok: ["Set","how","the","secondary","axis","converts","limits","from","the","parent","Axes",".","Parameters","--","--","--","--","--","functions",":","2-tuple","of","func",",","or","`","Transform","`","with","an","inverse",".","Transform","between","the","parent","axis","values","and","the","secondary","axis","values",".","If","supplied","as","a","2-tuple","of","functions",",","the","first","function","is","the","forward","transform","function","and","the","second","is","the","inverse","transform",".","If","a","transform","is","supplied",",","then","the","transform","must","have","an","inverse","."]
code: def set_functions(self, functions):
      """
      Set how the secondary axis converts limits from the parent Axes.
  
      Parameters
      ----------
      functions : 2-tuple of func, or `Transform` with an inverse.
          Transform between the parent axis values and the secondary axis
          values.
  
          If supplied as a 2-tuple of functions, the first function is
          the forward transform function and the second is the inverse
          transform.
  
          If a transform is supplied, then the transform must have an
          inverse.
      """
  
      if (
          isinstance(functions, tuple)
          and len(functions) == 2
          and callable(functions[0])
          and callable(functions[1])
      ):
          # make an arbitrary convert from a two-tuple of functions
          # forward and inverse.
          self._functions = functions
      elif isinstance(functions, Transform):
          self._functions = (
              functions.transform,
              lambda x: functions.inverted().transform(x),
          )
      elif functions is None:
          self._functions = (lambda x: x, lambda x: x)
      else:
          raise ValueError(
              "functions argument of secondary Axes "
              "must be a two-tuple of callable functions "
              "with the first function being the transform "
              "and the second being the inverse"
          )
      self._set_scale()
  
file_path: matplotlib/lib/matplotlib/axes/_secondary_axes.py
imports: import numbers
  import numpy
  from matplotlib import _api, _docstring
  import matplotlib.ticker
  from matplotlib.axes._base import _AxesBase, _TransformedBoundsLocator
  from matplotlib.axis import Axis
  from matplotlib.transforms import Transform
label_desc: Use image node_id 6 for calling the SecondaryAxis obj's underlying member method code with example usage: obj.set_functions(functions) without return types