Skip to content

Commit 5013dc8

Browse files
committed
replaced col2hex which seems to have gotten lost in a bad merge
1 parent ff227d3 commit 5013dc8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/backends/qt4_editor/formlayout.py

+6
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060

6161
import datetime
6262

63+
64+
def col2hex(color):
65+
"""Convert matplotlib color to hex before passing to Qt"""
66+
return rgb2hex(colorConverter.to_rgb(color))
67+
68+
6369
class ColorButton(QtGui.QPushButton):
6470
"""
6571
Color choosing push button

0 commit comments

Comments
 (0)