code: def move_spines(ax, sides, dists):
      
      for side, dist in zip(sides, dists):
          ax.spines[side].set_position(("axes", dist))
      return ax
docs: Move the entire spine relative to the figure.
  
      Parameters:
        ax: axes to operate on
        sides: list of sides to move. Sides: top, left, bottom, right
        dists: list of float distances to move. Should match sides in length.
  
      Example:
      move_spines(ax, sides=['left', 'bottom'], dists=[-0.02, 0.1])