From eeff73528974319aa672c93726c7de31f397e13f Mon Sep 17 00:00:00 2001 From: Acanthostega Date: Wed, 1 Apr 2015 18:05:32 +0200 Subject: [PATCH] Labels do not becomes color anymore in figure options panel for qt toolbar --- lib/matplotlib/backends/qt_editor/formlayout.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/qt_editor/formlayout.py b/lib/matplotlib/backends/qt_editor/formlayout.py index bc6d0a2db1e2..47d50b3c6b80 100644 --- a/lib/matplotlib/backends/qt_editor/formlayout.py +++ b/lib/matplotlib/backends/qt_editor/formlayout.py @@ -61,6 +61,8 @@ import datetime +BLACKLIST = set(["title", "label"]) + def col2hex(color): """Convert matplotlib color to hex before passing to Qt""" @@ -262,7 +264,7 @@ def setup(self): continue elif tuple_to_qfont(value) is not None: field = FontLayout(value, self) - elif is_color_like(value): + elif label.lower() not in BLACKLIST and is_color_like(value): field = ColorLayout(to_qcolor(value), self) elif isinstance(value, six.string_types): field = QtWidgets.QLineEdit(value, self)