@@ -72,7 +72,7 @@ def __init__(self, *,
7272 joinstyle = JoinStyle .miter
7373
7474 self ._hatch_color = colors .to_rgba (mpl .rcParams ['hatch.color' ])
75- self ._fill = True # needed for set_facecolor call
75+ self ._fill = bool ( fill ) # needed for set_facecolor call
7676 if color is not None :
7777 if edgecolor is not None or facecolor is not None :
7878 _api .warn_external (
@@ -87,7 +87,6 @@ def __init__(self, *,
8787 self ._unscaled_dash_pattern = (0 , None ) # offset, dash
8888 self ._dash_pattern = (0 , None ) # offset, dash (scaled by linewidth)
8989
90- self .set_fill (fill )
9190 self .set_linestyle (linestyle )
9291 self .set_linewidth (linewidth )
9392 self .set_antialiased (antialiased )
@@ -880,8 +879,7 @@ def set_bounds(self, *args):
880879
881880 def get_bbox (self ):
882881 """Return the `.Bbox`."""
883- x0 , y0 , x1 , y1 = self ._convert_units ()
884- return transforms .Bbox .from_extents (x0 , y0 , x1 , y1 )
882+ return transforms .Bbox .from_extents (* self ._convert_units ())
885883
886884 xy = property (get_xy , set_xy )
887885
0 commit comments