docstr: Sets the x position with respect to `xref` (in normalized
  coordinates) of the legend. When `xref` is "paper", defaults to
  1.02 for vertical legends and defaults to 0 for horizontal
  legends. When `xref` is "container", defaults to 1 for vertical
  legends and defaults to 0 for horizontal legends. Must be
  between 0 and 1 if `xref` is "container". and between "-2" and
  3 if `xref` is "paper".
  
  The 'x' property is a number and may be specified as:
    - An int or float
  
  Returns
  -------
  int|float
docstr_tok: ["Sets","the","x","position","with","respect","to","`","xref","`","(","in","normalized","coordinates",")","of","the","legend",".","When","`","xref","`","is","``","paper","''",",","defaults","to","1.02","for","vertical","legends","and","defaults","to","0","for","horizontal","legends",".","When","`","xref","`","is","``","container","''",",","defaults","to","1","for","vertical","legends","and","defaults","to","0","for","horizontal","legends",".","Must","be","between","0","and","1","if","`","xref","`","is","``","container","''",".","and","between","``","-2","''","and","3","if","`","xref","`","is","``","paper","''",".","The","'","x","'","property","is","a","number","and","may","be","specified","as",":","-","An","int","or","float","Returns","--","--","--","-","int|float"]
code: def x(self):
      """
      Sets the x position with respect to `xref` (in normalized
      coordinates) of the legend. When `xref` is "paper", defaults to
      1.02 for vertical legends and defaults to 0 for horizontal
      legends. When `xref` is "container", defaults to 1 for vertical
      legends and defaults to 0 for horizontal legends. Must be
      between 0 and 1 if `xref` is "container". and between "-2" and
      3 if `xref` is "paper".
  
      The 'x' property is a number and may be specified as:
        - An int or float
  
      Returns
      -------
      int|float
      """
      return self["x"]
  
imports: from plotly.basedatatypes import BaseLayoutHierarchyType
  import copy
label_desc: Use image node_id 39 for calling the Legend obj's underlying member method code with example usage: obj.x() and returns: self