We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c45952 commit bd0298dCopy full SHA for bd0298d
lib/matplotlib/legend.py
@@ -342,7 +342,8 @@ def __init__(
342
title_fontproperties=None, # properties for the legend title
343
alignment="center", # control the alignment within the legend box
344
*,
345
- ncol=1 # synonym for ncols (backward compatibility)
+ ncol=1, # synonym for ncols (backward compatibility)
346
+ draggable=None # whether the legend can be dragged with the mouse
347
):
348
"""
349
Parameters
@@ -537,7 +538,9 @@ def val_or_rc(val, rc_name):
537
538
title_prop_fp.set_size(title_fontsize)
539
540
self.set_title(title, prop=title_prop_fp)
541
+
542
self._draggable = None
543
+ self.set_draggable(state=draggable)
544
545
# set the text color
546
0 commit comments