File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -274,9 +274,7 @@ def set_fillstyle(self, fillstyle):
274
274
"""
275
275
if fillstyle is None :
276
276
fillstyle = rcParams ['markers.fillstyle' ]
277
- if fillstyle not in self .fillstyles :
278
- raise ValueError ("Unrecognized fillstyle %s"
279
- % ' ' .join (self .fillstyles ))
277
+ cbook ._check_in_list (self .fillstyles , fillstyle = fillstyle )
280
278
self ._fillstyle = fillstyle
281
279
self ._recache ()
282
280
@@ -396,9 +394,7 @@ def _set_mathtext_path(self):
396
394
self ._snap = False
397
395
398
396
def _half_fill (self ):
399
- fs = self .get_fillstyle ()
400
- result = fs in self ._half_fillstyles
401
- return result
397
+ return self .get_fillstyle () in self ._half_fillstyles
402
398
403
399
def _set_circle (self , reduction = 1.0 ):
404
400
self ._transform = Affine2D ().scale (0.5 * reduction )
You can’t perform that action at this time.
0 commit comments