From 8ba7611b7b8c3ca3b6d3b823b5ac8a8a095fc6e9 Mon Sep 17 00:00:00 2001 From: Acanthostega Date: Tue, 22 Dec 2015 12:28:18 +0100 Subject: [PATCH] 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 --- lib/matplotlib/backends/qt_editor/figureoptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/qt_editor/figureoptions.py b/lib/matplotlib/backends/qt_editor/figureoptions.py index 7435a47a0111..b1b850c9053c 100644 --- a/lib/matplotlib/backends/qt_editor/figureoptions.py +++ b/lib/matplotlib/backends/qt_editor/figureoptions.py @@ -158,7 +158,7 @@ def apply_callback(data): if generate_legend: draggable = None - ncol = None + ncol = 1 if axes.legend_ is not None: old_legend = axes.get_legend() draggable = old_legend._draggable is not None