docstr: Sets the anchor for the x position
  
  The 'xanchor' property is an enumeration that may be specified as:
    - One of the following enumeration values:
          ['left', 'center', 'right']
  
  Returns
  -------
  Any
docstr_tok: ["Sets","the","anchor","for","the","x","position","The","'xanchor","'","property","is","an","enumeration","that","may","be","specified","as",":","-","One","of","the","following","enumeration","values",":","[","'left","'",",","'center","'",",","'right","'","]","Returns","--","--","--","-","Any"]
code: def xanchor(self):
      """
      Sets the anchor for the x position
  
      The 'xanchor' property is an enumeration that may be specified as:
        - One of the following enumeration values:
              ['left', 'center', 'right']
  
      Returns
      -------
      Any
      """
      return self["xanchor"]
  
imports: from plotly.basedatatypes import BaseLayoutHierarchyType
  import copy
label_desc: Use image node_id 21 for calling the Image obj's underlying member method code with example usage: obj.xanchor() and returns: self