Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e5d83e + f62b9ba commit 9e9554eCopy full SHA for 9e9554e
1 file changed
lib/matplotlib/markers.py
@@ -274,9 +274,7 @@ def set_fillstyle(self, fillstyle):
274
"""
275
if fillstyle is None:
276
fillstyle = rcParams['markers.fillstyle']
277
- if fillstyle not in self.fillstyles:
278
- raise ValueError("Unrecognized fillstyle %s"
279
- % ' '.join(self.fillstyles))
+ cbook._check_in_list(self.fillstyles, fillstyle=fillstyle)
280
self._fillstyle = fillstyle
281
self._recache()
282
@@ -396,9 +394,7 @@ def _set_mathtext_path(self):
396
394
self._snap = False
397
395
398
def _half_fill(self):
399
- fs = self.get_fillstyle()
400
- result = fs in self._half_fillstyles
401
- return result
+ return self.get_fillstyle() in self._half_fillstyles
402
403
def _set_circle(self, reduction=1.0):
404
self._transform = Affine2D().scale(0.5 * reduction)
0 commit comments