def set_aspect(self, aspect, adjustable=None, anchor=None):
if aspect in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>self._aspect = '<STR_LIT>'<EOL><DEDENT>elif aspect == '<STR_LIT>':<EOL><INDENT>self._aspect = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>self._aspect = float(aspect) <EOL><DEDENT>if adjustable is not None:<EOL><INDENT>self.set_adjustable(adjustable)<EOL><DEDENT>if anchor is not None:<EOL><INDENT>self.set_anchor(anchor)<EOL><DEDENT>
*aspect*

  ========   ================================================
  value      description
  ========   ================================================
  'auto'     automatic; fill position rectangle with data
  'normal'   same as 'auto'; deprecated
  'equal'    same scaling from data to plot units for x and y
   num       a circle will be stretched such that the height
             is num times the width. aspect=1 is the same as
             aspect='equal'.
  ========   ================================================

*adjustable*

  =========   ============================
  value       description
  =========   ============================
  'box'       change physical size of axes
  'datalim'   change xlim or ylim
  =========   ============================

*anchor*

  =====   =====================
  value   description
  =====   =====================
  'C'     centered
  'SW'    lower left corner
  'S'     middle of bottom edge
  'SE'    lower right corner
  etc.
  =====   =====================