docstr: When `dragmode` is set to "drawrect", "drawline" or
  "drawcircle" this limits the drag to be horizontal, vertical or
  diagonal. Using "diagonal" there is no limit e.g. in drawing
  lines in any direction. "ortho" limits the draw to be either
  horizontal or vertical. "horizontal" allows horizontal extend.
  "vertical" allows vertical extend.
  
  The 'drawdirection' property is an enumeration that may be specified as:
    - One of the following enumeration values:
          ['ortho', 'horizontal', 'vertical', 'diagonal']
  
  Returns
  -------
  Any
docstr_tok: ["When","`","dragmode","`","is","set","to","``","drawrect","''",",","``","drawline","''","or","''","drawcircle","''","this","limits","the","drag","to","be","horizontal",",","vertical","or","diagonal",".","Using","``","diagonal","''","there","is","no","limit","e.g",".","in","drawing","lines","in","any","direction",".","``","ortho","''","limits","the","draw","to","be","either","horizontal","or","vertical",".","``","horizontal","''","allows","horizontal","extend",".","``","vertical","''","allows","vertical","extend",".","The","'drawdirection","'","property","is","an","enumeration","that","may","be","specified","as",":","-","One","of","the","following","enumeration","values",":","[","'ortho","'",",","'horizontal","'",",","'vertical","'",",","'diagonal","'","]","Returns","--","--","--","-","Any"]
code: def drawdirection(self):
      """
      When `dragmode` is set to "drawrect", "drawline" or
      "drawcircle" this limits the drag to be horizontal, vertical or
      diagonal. Using "diagonal" there is no limit e.g. in drawing
      lines in any direction. "ortho" limits the draw to be either
      horizontal or vertical. "horizontal" allows horizontal extend.
      "vertical" allows vertical extend.
  
      The 'drawdirection' property is an enumeration that may be specified as:
        - One of the following enumeration values:
              ['ortho', 'horizontal', 'vertical', 'diagonal']
  
      Returns
      -------
      Any
      """
      return self["drawdirection"]
  
file_path: catboost/contrib/python/plotly/py2/plotly/graph_objs/layout/_newshape.py
imports: from plotly.basedatatypes import BaseLayoutHierarchyType
  import copy
label_desc: Use image node_id 1 for calling the Newshape obj's underlying member method code with example usage: obj.drawdirection() and returns: self