class_docstr: General class to hold a Secondary_X/Yaxis.
class_docstr_tok: ["General","class","to","hold","a","Secondary_X\/Yaxis","."]
docstr: Set the limits based on parent limits and the convert method
  between the parent and this secondary Axes.
docstr_tok: ["Set","the","limits","based","on","parent","limits","and","the","convert","method","between","the","parent","and","this","secondary","Axes","."]
code: def _set_lims(self):
      """
      Set the limits based on parent limits and the convert method
      between the parent and this secondary Axes.
      """
      if self._orientation == "x":
          lims = self._parent.get_xlim()
          set_lim = self.set_xlim
      else:  # 'y'
          lims = self._parent.get_ylim()
          set_lim = self.set_ylim
      order = lims[0] < lims[1]
      lims = self._functions[0](np.array(lims))
      neworder = lims[0] < lims[1]
      if neworder != order:
          # Flip because the transform will take care of the flipping.
          lims = lims[::-1]
      set_lim(lims)
  
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 9 for calling the SecondaryAxis obj's underlying member method code with example usage: obj._set_lims() without return types