docstr: Sets the width (in px or fraction) of the legend for new shape.
  
  The 'legendwidth' property is a number and may be specified as:
    - An int or float in the interval [0, inf]
  
  Returns
  -------
  int|float
docstr_tok: ["Sets","the","width","(","in","px","or","fraction",")","of","the","legend","for","new","shape",".","The","'legendwidth","'","property","is","a","number","and","may","be","specified","as",":","-","An","int","or","float","in","the","interval","[","0",",","inf","]","Returns","--","--","--","-","int|float"]
code: def legendwidth(self):
      """
      Sets the width (in px or fraction) of the legend for new shape.
  
      The 'legendwidth' property is a number and may be specified as:
        - An int or float in the interval [0, inf]
  
      Returns
      -------
      int|float
      """
      return self["legendwidth"]
  
imports: from plotly.basedatatypes import BaseLayoutHierarchyType
  import copy
label_desc: Use image node_id 19 for calling the Newshape obj's underlying member method code with example usage: obj.legendwidth() and returns: self