File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ def _update_bbox_to_anchor(self, loc_in_canvas):
287287 handler. This *handler_map* updates the default handler map
288288 found at `matplotlib.legend.Legend.get_legend_handler_map`.
289289
290- draggable : bool or None
290+ draggable : bool, default: False
291291 Whether the legend can be dragged with the mouse.
292292""" )
293293
@@ -346,7 +346,7 @@ def __init__(
346346 alignment = "center" , # control the alignment within the legend box
347347 * ,
348348 ncol = 1 , # synonym for ncols (backward compatibility)
349- draggable = None # whether the legend can be dragged with the mouse
349+ draggable = False # whether the legend can be dragged with the mouse
350350 ):
351351 """
352352 Parameters
Original file line number Diff line number Diff line change @@ -788,7 +788,7 @@ def test_legend_draggable(draggable):
788788 fig , ax = plt .subplots ()
789789 ax .plot (range (10 ), label = 'shabnams' )
790790 leg = ax .legend (draggable = draggable )
791- assert leg .get_draggable () == draggable
791+ assert leg .get_draggable () is draggable
792792
793793
794794def test_alpha_handles ():
You can’t perform that action at this time.
0 commit comments