8000 Change default value for the number of columns when generating a lege… · matplotlib/matplotlib@8ba7611 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ba7611

Browse files
committed
Change default value for the number of columns when generating a legend from the qt_editor, avoiding problems for large number of plots where no defaults are given for this value
1 parent 227f0c4 commit 8ba7611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/qt_editor/figureoptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def apply_callback(data):
158158

159159
if generate_legend:
160160
draggable = None
161-
ncol = None
161+
ncol = 1
162162
if axes.legend_ is not None:
163163
old_legend = axes.get_legend()
164164
draggable = old_legend._draggable is not None

0 commit comments

Comments
 (0)
0