@@ -31,16 +31,16 @@ def _plot(self, split_gen, scales, orient):
31
31
verts = self ._get_verts (data , orient )
32
32
ax .update_datalim (verts )
33
33
34
- # TODO fill= is not working here properly
35
- # We could hack a fix, but would be better to handle fill in resolve_color
34
+ # TODO should really move this logic into resolve_color
35
+ fc = resolve_color (self , keys , "" , scales )
36
+ if not resolved ["fill" ]:
37
+ fc = mpl .colors .to_rgba (fc , 0 )
36
38
37
- kws ["facecolor" ] = resolve_color ( self , keys , "" , scales )
39
+ kws ["facecolor" ] = fc
38
40
kws ["edgecolor" ] = resolve_color (self , keys , "edge" , scales )
39
41
kws ["linewidth" ] = resolved ["edgewidth" ]
40
42
kws ["linestyle" ] = resolved ["edgestyle" ]
41
43
42
- # path = mpl.path.Path(verts) # TODO, closed=True)
43
- # patches[ax].append(mpl.patches.PathPatch(path, **kws))
44
44
patches [ax ].append (mpl .patches .Polygon (verts , ** kws ))
45
45
46
46
for ax , ax_patches in patches .items ():
@@ -72,8 +72,12 @@ def _legend_artist(self, variables, value, scales):
72
72
keys = {v : value for v in variables }
73
73
resolved = resolve_properties (self , keys , scales )
74
74
75
+ fc = resolve_color (self , keys , "" , scales )
76
+ if not resolved ["fill" ]:
77
+ fc = mpl .colors .to_rgba (fc , 0 )
78
+
75
79
return mpl .patches .Patch (
76
- facecolor = resolve_color ( self , keys , "" , scales ) ,
80
+ facecolor = fc ,
77
81
edgecolor = resolve_color (self , keys , "edge" , scales ),
78
82
linewidth = resolved ["edgewidth" ],
79
83
linestyle = resolved ["edgestyle" ],
0 commit comments