def _set_spine_position(spine, position):
 axis = spine.axis
 if (axis is not None):
  cla = axis.cla
  axis.cla = axis.reset_ticks
 spine.set_position(position)
 if (axis is not None):
  axis.cla = cla

def _set_spine_position ( spine , position ) : axis = spine . axis if ( axis is not None ) : cla = axis . cla axis . cla = axis . reset_ticks spine . set_position ( position ) if ( axis is not None ) : axis . cla = cla
set the spines position without resetting an associated axis .