class_docstr: An axis spine -- the line noting the data area boundaries.
  
  Spines are the lines connecting the axis tick marks and noting the
  boundaries of the data area. They can be placed at arbitrary
  positions. See `~.Spine.set_position` for more information.
  
  The default position is ``('outward', 0)``.
  
  Spines are subclasses of `.Patch`, and inherit much of their behavior.
  
  Spines draw a line, a circle, or an arc depending on if
  `~.Spine.set_patch_line`, `~.Spine.set_patch_circle`, or
  `~.Spine.set_patch_arc` has been called. Line-like is the default.
  
  For examples see :ref:`spines_examples`.
class_docstr_tok: ["An","axis","spine","--","the","line","noting","the","data","area","boundaries",".","Spines","are","the","lines","connecting","the","axis","tick","marks","and","noting","the","boundaries","of","the","data","area",".","They","can","be","placed","at","arbitrary","positions",".","See","`","~.Spine.set_position","`","for","more","information",".","The","default","position","is","``","(","'outward","'",",","0",")","``",".","Spines","are","subclasses","of","`",".Patch","`",",","and","inherit","much","of","their","behavior",".","Spines","draw","a","line",",","a","circle",",","or","an","arc","depending","on","if","`","~.Spine.set_patch_line","`",",","`","~.Spine.set_patch_circle","`",",","or","`","~.Spine.set_patch_arc","`","has","been","called",".","Line-like","is","the","default",".","For","examples","see",":","ref",":","`","spines_examples","`","."]
docstr: Set the spine bounds.
  
  Parameters
  ----------
  low : float or None, optional
      The lower spine bound. Passing *None* leaves the limit unchanged.
  
      The bounds may also be passed as the tuple (*low*, *high*) as the
      first positional argument.
  
      .. ACCEPTS: (low: float, high: float)
  
  high : float or None, optional
      The higher spine bound. Passing *None* leaves the limit unchanged.
docstr_tok: ["Set","the","spine","bounds",".","Parameters","--","--","--","--","--","low",":","float","or","None",",","optional","The","lower","spine","bound",".","Passing","*","None","*","leaves","the","limit","unchanged",".","The","bounds","may","also","be","passed","as","the","tuple","(","*","low","*",",","*","high","*",")","as","the","first","positional","argument",".","..","ACCEPTS",":","(","low",":","float",",","high",":","float",")","high",":","float","or","None",",","optional","The","higher","spine","bound",".","Passing","*","None","*","leaves","the","limit","unchanged","."]
code: def set_bounds(self, low=None, high=None):
      """
      Set the spine bounds.
  
      Parameters
      ----------
      low : float or None, optional
          The lower spine bound. Passing *None* leaves the limit unchanged.
  
          The bounds may also be passed as the tuple (*low*, *high*) as the
          first positional argument.
  
          .. ACCEPTS: (low: float, high: float)
  
      high : float or None, optional
          The higher spine bound. Passing *None* leaves the limit unchanged.
      """
      if self.spine_type == "circle":
          raise ValueError(
              "set_bounds() method incompatible with circular spines"
          )
      if high is None and np.iterable(low):
          low, high = low
      old_low, old_high = self.get_bounds() or (None, None)
      if low is None:
          low = old_low
      if high is None:
          high = old_high
      self._bounds = (low, high)
      self.stale = True
  
imports: from collections.abc import MutableMapping
  import functools
  import numpy
  import matplotlib
  from matplotlib import _api, _docstring
  from matplotlib.artist import allow_rasterization
  import matplotlib.transforms
  import matplotlib.patches
  import matplotlib.path
label_desc: Use image node_id 19 for calling the Spine obj's underlying member method code with example usage: obj.set_bounds(low, high) without return types