@@ -59,8 +59,9 @@ def __init__(self, legend, use_blit=False, update="loc"):
59
59
legend : `.Legend`
60
60
The `.Legend` instance to wrap.
61
61
use_blit : bool, optional
62
-
63
- update : ['loc' | 'bbox'], optional
62
+ Use blitting for faster image composition. For details see
63
+ :ref:`func-animation`.
64
+ update : {'loc', 'bbox'}, optional
64
65
If "loc", update the *loc* parameter of the legend upon finalizing.
65
66
If "bbox", update the *bbox_to_anchor* parameter.
66
67
"""
@@ -1111,8 +1112,9 @@ def set_draggable(self, state, use_blit=False, update='loc'):
1111
1112
state : bool
1112
1113
``True`` / ``False`` enables / disables mouse dragging.
1113
1114
use_blit : bool, optional
1114
-
1115
- update_loc : ['loc' | 'bbox'], optional
1115
+ Use blitting for faster image composition. For details see
1116
+ :ref:`func-animation`.
1117
+ update : ['loc' | 'bbox'], optional
1116
1118
The legend parameter to be changed when dragged:
1117
1119
1118
1120
- 'loc': update the *loc* parameter of the legend
@@ -1132,6 +1134,7 @@ def set_draggable(self, state, use_blit=False, update='loc'):
1132
1134
if self ._draggable is not None :
1133
1135
self ._draggable .disconnect ()
1134
1136
self ._draggable = None
1137
+ return self ._draggable
1135
1138
1136
1139
def get_draggable (self ):
1137
1140
"""Return ``True`` if the legend is draggable, ``False`` otherwise."""
0 commit comments