class_docstr: Place a legend on the axes at location loc.
class_docstr_tok: ["Place","a","legend","on","the","axes","at","location","loc","."]
docstr: Set the draggable state -- if state is
  
    * None : toggle the current state
  
    * True : turn draggable on
  
    * False : turn draggable off
  
  If draggable is on, you can drag the legend on the canvas with
  the mouse. The `.DraggableLegend` helper instance is returned if
  draggable is on.
  
  The update parameter control which parameter of the legend changes
  when dragged. If update is "loc", the *loc* parameter of the legend
  is changed. If "bbox", the *bbox_to_anchor* parameter is changed.
docstr_tok: ["Set","the","draggable","state","--","if","state","is","*","None",":","toggle","the","current","state","*","True",":","turn","draggable","on","*","False",":","turn","draggable","off","If","draggable","is","on",",","you","can","drag","the","legend","on","the","canvas","with","the","mouse",".","The","`",".DraggableLegend","`","helper","instance","is","returned","if","draggable","is","on",".","The","update","parameter","control","which","parameter","of","the","legend","changes","when","dragged",".","If","update","is","``","loc","''",",","the","*","loc","*","parameter","of","the","legend","is","changed",".","If","``","bbox","''",",","the","*","bbox_to_anchor","*","parameter","is","changed","."]
code: def draggable(self, state=None, use_blit=False, update="loc"):
      """
      Set the draggable state -- if state is
  
        * None : toggle the current state
  
        * True : turn draggable on
  
        * False : turn draggable off
  
      If draggable is on, you can drag the legend on the canvas with
      the mouse. The `.DraggableLegend` helper instance is returned if
      draggable is on.
  
      The update parameter control which parameter of the legend changes
      when dragged. If update is "loc", the *loc* parameter of the legend
      is changed. If "bbox", the *bbox_to_anchor* parameter is changed.
      """
      is_draggable = self._draggable is not None
  
      # if state is None we'll toggle
      if state is None:
          state = not is_draggable
  
      if state:
          if self._draggable is None:
              self._draggable = DraggableLegend(
                  self, use_blit, update=update
              )
      else:
          if self._draggable is not None:
              self._draggable.disconnect()
          self._draggable = None
  
      return self._draggable
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import logging
  import warnings
  import numpy
  from matplotlib import rcParams
  from matplotlib import docstring
  from matplotlib.artist import Artist, allow_rasterization
  from matplotlib.cbook import silent_list, is_hashable
  import matplotlib.colors
  from matplotlib.font_manager import FontProperties
  from matplotlib.lines import Line2D
  from matplotlib.patches import Patch, Rectangle, Shadow, FancyBboxPatch
  from matplotlib.collections import LineCollection, RegularPolyCollection, CircleCollection, PathCollection, PolyCollection
  from matplotlib.transforms import Bbox, BboxBase, TransformedBbox
  from matplotlib.transforms import BboxTransformTo, BboxTransformFrom
  from matplotlib.offsetbox import HPacker, VPacker, TextArea, DrawingArea
  from matplotlib.offsetbox import DraggableOffsetBox
  from matplotlib.container import ErrorbarContainer, BarContainer, StemContainer
  from .None import legend_handler
label_desc: Use image node_id 32 for calling the Legend obj's underlying member method code with example usage: obj.draggable(state, use_blit, update) and returns: self