@@ -30,13 +30,6 @@ def get_icon(name):
30
30
31
31
MARKERS = markers .MarkerStyle .markers
32
32
33
- COLORS = {'b' : '#0000ff' , 'g' : '#00ff00' , 'r' : '#ff0000' , 'c' : '#ff00ff' ,
34
- 'm' : '#ff00ff' , 'y' : '#ffff00' , 'k' : '#000000' , 'w' : '#ffffff' }
35
-
36
- def col2hex (color ):
37
- """Convert matplotlib color to hex"""
38
- return COLORS .get (color , color )
39
-
40
33
def figure_edit (axes , parent = None ):
41
34
"""Edit matplotlib figure options"""
42
35
sep = (None , None ) # separator
@@ -79,13 +72,13 @@ def figure_edit(axes, parent=None):
79
72
(None , '<b>Line</b>' ),
80
73
('Style' , [line .get_linestyle ()] + linestyles ),
81
74
('Width' , line .get_linewidth ()),
82
- ('Color' , col2hex ( line .get_color () )),
75
+ ('Color' , line .get_color ()),
83
76
sep ,
84
77
(None , '<b>Marker</b>' ),
85
78
('Style' , [line .get_marker ()] + markers ),
86
79
('Size' , line .get_markersize ()),
87
- ('Facecolor' , col2hex ( line .get_markerfacecolor () )),
88
- ('Edgecolor' , col2hex ( line .get_markeredgecolor () )),
80
+ ('Facecolor' , line .get_markerfacecolor ()),
81
+ ('Edgecolor' , line .get_markeredgecolor ()),
89
82
]
90
83
curves .append ([curvedata , label , "" ])
91
84
0 commit comments