docstr: Sets the legend's horizontal position anchor. This anchor binds
  the `x` position to the "left", "center" or "right" of the
  legend. Value "auto" anchors legends to the right for `x`
  values greater than or equal to 2/3, anchors legends to the
  left for `x` values less than or equal to 1/3 and anchors
  legends with respect to their center otherwise.
  
  The 'xanchor' property is an enumeration that may be specified as:
    - One of the following enumeration values:
          ['auto', 'left', 'center', 'right']
  
  Returns
  -------
  Any
docstr_tok: ["Sets","the","legend","'s","horizontal","position","anchor",".","This","anchor","binds","the","`","x","`","position","to","the","``","left","''",",","``","center","''","or","``","right","''","of","the","legend",".","Value","``","auto","''","anchors","legends","to","the","right","for","`","x","`","values","greater","than","or","equal","to","2\/3",",","anchors","legends","to","the","left","for","`","x","`","values","less","than","or","equal","to","1\/3","and","anchors","legends","with","respect","to","their","center","otherwise",".","The","'xanchor","'","property","is","an","enumeration","that","may","be","specified","as",":","-","One","of","the","following","enumeration","values",":","[","'auto","'",",","'left","'",",","'center","'",",","'right","'","]","Returns","--","--","--","-","Any"]
code: def xanchor(self):
      """
      Sets the legend's horizontal position anchor. This anchor binds
      the `x` position to the "left", "center" or "right" of the
      legend. Value "auto" anchors legends to the right for `x`
      values greater than or equal to 2/3, anchors legends to the
      left for `x` values less than or equal to 1/3 and anchors
      legends with respect to their center otherwise.
  
      The 'xanchor' property is an enumeration that may be specified as:
        - One of the following enumeration values:
              ['auto', 'left', 'center', 'right']
  
      Returns
      -------
      Any
      """
      return self["xanchor"]
  
imports: from plotly.basedatatypes import BaseLayoutHierarchyType
  import copy
label_desc: Use image node_id 31 for calling the Legend obj's underlying member method code with example usage: obj.xanchor() and returns: self