Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit94e6944

Browse files
committed
Merge pull request#4304 from Acanthostega/master
BUG : never treat title or label values as colors in qt_editorfixes#4303
2 parentsadc9f82 +eeff735 commit94e6944

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎lib/matplotlib/backends/qt_editor/formlayout.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161

6262
importdatetime
6363

64+
BLACKLIST=set(["title","label"])
65+
6466

6567
defcol2hex(color):
6668
"""Convert matplotlib color to hex before passing to Qt"""
@@ -262,7 +264,7 @@ def setup(self):
262264
continue
263265
eliftuple_to_qfont(value)isnotNone:
264266
field=FontLayout(value,self)
265-
elifis_color_like(value):
267+
eliflabel.lower()notinBLACKLISTandis_color_like(value):
266268
field=ColorLayout(to_qcolor(value),self)
267269
elifisinstance(value,six.string_types):
268270
field=QtWidgets.QLineEdit(value,self)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp