8000 Fix missing 'self.'s in call of _half_fill method. · matplotlib/matplotlib@c6e93d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit c6e93d3

Browse files
committed
Fix missing 'self.'s in call of _half_fill method.
1 parent 9cff4e4 commit c6e93d3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/matplotlib/markers.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,14 @@ def _set_mathtext_path(self):
247247

248248
def _half_fill(self):
249249
fs = self.get_fillstyle()
250-
result = fs in _half_fillstyles
250+
result = fs in self._half_fillstyles
251251
return result
252252

253253
def _set_circle(self, reduction = 1.0):
254254
self._transform = Affine2D().scale(0.5 * reduction)
255255
self._snap_threshold = 3.0
256256
fs = self.get_fillstyle()
257-
if not _half_fill():
257+
if not self._half_fill():
258258
self._path = Path.unit_circle()
259259
else:
260260
# build a right-half circle
@@ -296,7 +296,7 @@ def _set_triangle(self, rot, skip):
296296
self._snap_threshold = 5.0
297297
fs = self.get_fillstyle()
298298

299-
if not _half_fill():
299+
if not self._half_fill():
300300
self._path = self._triangle_path
301301
else:
302302
mpaths = [self._triangle_path_u,
@@ -335,7 +335,7 @@ def _set_square(self):
335335
self._transform = Affine2D().translate(-0.5, -0.5)
336336
self._snap_threshold = 2.0
337337
fs = self.get_fillstyle()
338-
if not _half_fill():
338+
if not self._half_fill():
339339
self._path = Path.unit_rectangle()
340340
else:
341341
# build a bottom filled square out of two rectangles, one
@@ -355,7 +355,7 @@ def _set_diamond(self):
355355
self._transform = Affine2D().translate(-0.5, -0.5).rotate_deg(45)
356356
self._snap_threshold = 5.0
357357
fs = self.get_fillstyle()
358-
if not _half_fill():
358+
if not self._half_fill():
359359
self._path = Path.unit_rectangle()
360360
else:
361361
self._path = Path([[0.0, 0.0], [1.0, 0.0], [1.0, 1.0], [0.0, 0.0]])
@@ -380,7 +380,7 @@ def _set_pentagon(self):
380380
polypath = Path.unit_regular_polygon(5)
381381
fs = self.get_fillstyle()
382382

383-
if not _half_fill():
383+
if not self._half_fill():
384384
self._path = polypath
385385
else:
386386
verts = polypath.vertices
@@ -410,7 +410,7 @@ def _set_star(self):
410410
fs = self.get_fillstyle()
411411
polypath = Path.unit_regular_star(5, innerCircle=0.381966)
412412

413-
if not _half_fill():
413+
if not self._half_fill():
414414
self._path = polypath
415415
else:
416416
verts = polypath.vertices
@@ -439,7 +439,7 @@ def _set_hexagon1(self):
439439
fs = self.get_fillstyle()
440440
polypath = Path.unit_regular_polygon(6)
441441

442-
if not _half_fill():
442+
if not self._half_fill():
443443
self._path = polypath
444444
else:
445445
verts = polypath.vertices
@@ -471,7 +471,7 @@ def _set_hexagon2(self):
471471
fs = self.get_fillstyle()
472472
polypath = Path.unit_regular_polygon(6)
473473

474-
if not _half_fill():
474+
if not self._half_fill():
475475
self._path = polypath
476476
else:
477477
verts = polypath.vertices
@@ -503,7 +503,7 @@ def _set_octagon(self):
503503
fs = self.get_fillstyle()
504504
polypath = Path.unit_regular_polygon(8)
505505

506-
if not _half_fill():
506+
if not self._half_fill():
507507
self._transform.rotate_deg(22.5)
508508
self._path = polypath
509509
else:

0 commit comments

Comments
 (0)
0