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 function:`~matplotlib.spines.Spine.set_position`
  for more information.
  
  The default position is ``('outward',0)``.
  
  Spines are subclasses of class:`~matplotlib.patches.Patch`, and
  inherit much of their behavior.
  
  Spines draw a line, a circle, or an arc depending if
  function:`~matplotlib.spines.Spine.set_patch_line`,
  function:`~matplotlib.spines.Spine.set_patch_circle`, or
  function:`~matplotlib.spines.Spine.set_patch_arc` has been called.
  Line-like is the default.
docstr: set the position of the spine
  
  Spine position is specified by a 2 tuple of (position type,
  amount). The position types are:
  
  * 'outward' : place the spine out from the data area by the
    specified number of points. (Negative values specify placing the
    spine inward.)
  
  * 'axes' : place the spine at the specified Axes coordinate (from
    0.0-1.0).
  
  * 'data' : place the spine at the specified data coordinate.
  
  Additionally, shorthand notations define a special positions:
  
  * 'center' -> ('axes',0.5)
  * 'zero' -> ('data', 0.0)
code: def set_position(self, position):
      """set the position of the spine
  
      Spine position is specified by a 2 tuple of (position type,
      amount). The position types are:
  
      * 'outward' : place the spine out from the data area by the
        specified number of points. (Negative values specify placing the
        spine inward.)
  
      * 'axes' : place the spine at the specified Axes coordinate (from
        0.0-1.0).
  
      * 'data' : place the spine at the specified data coordinate.
  
      Additionally, shorthand notations define a special positions:
  
      * 'center' -> ('axes',0.5)
      * 'zero' -> ('data', 0.0)
  
      """
      if position in ("center", "zero"):
          # special positions
          pass
      else:
          if len(position) != 2:
              raise ValueError("position should be 'center' or 2-tuple")
          if position[0] not in ["outward", "axes", "data"]:
              raise ValueError(
                  "position[0] should be one of 'outward', "
                  "'axes', or 'data' "
              )
      self._position = position
      self._calc_offset_transform()
  
      self.set_transform(self.get_spine_transform())
  
      if self.axis is not None:
          self.axis.reset_ticks()
      self.stale = True
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import matplotlib
  from matplotlib.artist import allow_rasterization
  from matplotlib import docstring
  import matplotlib.transforms
  import matplotlib.patches
  import matplotlib.path
  import numpy
  import warnings
label_desc: Use image node_id 18 for calling the Spine obj's underlying member method code with example usage: obj.set_position(position) without return types