Thanks to visit codestin.com Credit goes to github.com
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.
2 parents adc9f82 + eeff735 commit 94e6944Copy full SHA for 94e6944
1 file changed
lib/matplotlib/backends/qt_editor/formlayout.py
@@ -61,6 +61,8 @@
61
62
import datetime
63
64
+BLACKLIST = set(["title", "label"])
65
+
66
67
def col2hex(color):
68
"""Convert matplotlib color to hex before passing to Qt"""
@@ -262,7 +264,7 @@ def setup(self):
262
264
continue
263
265
elif tuple_to_qfont(value) is not None:
266
field = FontLayout(value, self)
- elif is_color_like(value):
267
+ elif label.lower() not in BLACKLIST and is_color_like(value):
268
field = ColorLayout(to_qcolor(value), self)
269
elif isinstance(value, six.string_types):
270
field = QtWidgets.QLineEdit(value, self)
0 commit comments