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):
287
287
handler. This *handler_map* updates the default handler map
288
288
found at `matplotlib.legend.Legend.get_legend_handler_map`.
289
289
290
- draggable : bool or None
290
+ draggable : bool, default: False
291
291
Whether the legend can be dragged with the mouse.
292
292
""" )
293
293
@@ -346,7 +346,7 @@ def __init__(
346
346
alignment = "center" , # control the alignment within the legend box
347
347
* ,
348
348
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
350
350
):
351
351
"""
352
352
Parameters
Original file line number Diff line number Diff line change @@ -788,7 +788,7 @@ def test_legend_draggable(draggable):
788
788
fig , ax = plt .subplots ()
789
789
ax .plot (range (10 ), label = 'shabnams' )
790
790
leg = ax .legend (draggable = draggable )
791
- assert leg .get_draggable () == draggable
791
+ assert leg .get_draggable () is draggable
792
792
793
793
794
794
def test_alpha_handles ():
You can’t perform that action at this time.
0 commit comments