def set_anchor(self, anchor):
if anchor in list(mtransforms.Bbox.coefs.keys()) or len(anchor) == <NUM_LIT:2>:<EOL><INDENT>self._anchor = anchor<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>' %<EOL>'<STR_LIT:U+002CU+0020>'.join(list(mtransforms.BBox.coefs.keys())))<EOL><DEDENT>
*anchor*

  =====  ============
  value  description
  =====  ============
  'C'    Center
  'SW'   bottom left
  'S'    bottom
  'SE'   bottom right
  'E'    right
  'NE'   top right
  'N'    top
  'NW'   top left
  'W'    left
  =====  ============