@@ -247,14 +247,14 @@ def _set_mathtext_path(self):
247
247
248
248
def _half_fill (self ):
249
249
fs = self .get_fillstyle ()
250
- result = fs in _half_fillstyles
250
+ result = fs in self . _half_fillstyles
251
251
return result
252
252
253
253
def _set_circle (self , reduction = 1.0 ):
254
254
self ._transform = Affine2D ().scale (0.5 * reduction )
255
255
self ._snap_threshold = 3.0
256
256
fs = self .get_fillstyle ()
257
- if not _half_fill ():
257
+ if not self . _half_fill ():
258
258
self ._path = Path .unit_circle ()
259
259
else :
260
260
# build a right-half circle
@@ -296,7 +296,7 @@ def _set_triangle(self, rot, skip):
296
296
self ._snap_threshold = 5.0
297
297
fs = self .get_fillstyle ()
298
298
299
- if not _half_fill ():
299
+ if not self . _half_fill ():
300
300
self ._path = self ._triangle_path
301
301
else :
302
302
mpaths = [self ._triangle_path_u ,
@@ -335,7 +335,7 @@ def _set_square(self):
335
335
self ._transform = Affine2D ().translate (- 0.5 , - 0.5 )
336
336
self ._snap_threshold = 2.0
337
337
fs = self .get_fillstyle ()
338
- if not _half_fill ():
338
+ if not self . _half_fill ():
339
339
self ._path = Path .unit_rectangle ()
340
340
else :
341
341
# build a bottom filled square out of two rectangles, one
@@ -355,7 +355,7 @@ def _set_diamond(self):
355
355
self ._transform = Affine2D ().translate (- 0.5 , - 0.5 ).rotate_deg (45 )
356
356
self ._snap_threshold = 5.0
357
357
fs = self .get_fillstyle ()
358
- if not _half_fill ():
358
+ if not self . _half_fill ():
359
359
self ._path = Path .unit_rectangle ()
360
360
else :
361
361
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):
380
380
polypath = Path .unit_regular_polygon (5 )
381
381
fs = self .get_fillstyle ()
382
382
383
- if not _half_fill ():
383
+ if not self . _half_fill ():
384
384
self ._path = polypath
385
385
else :
386
386
verts = polypath .vertices
@@ -410,7 +410,7 @@ def _set_star(self):
410
410
fs = self .get_fillstyle ()
411
411
polypath = Path .unit_regular_star (5 , innerCircle = 0.381966 )
412
412
413
- if not _half_fill ():
413
+ if not self . _half_fill ():
414
414
self ._path = polypath
415
415
else :
416
416
verts = polypath .vertices
@@ -439,7 +439,7 @@ def _set_hexagon1(self):
439
439
fs = self .get_fillstyle ()
440
440
polypath = Path .unit_regular_polygon (6 )
441
441
442
- if not _half_fill ():
442
+ if not self . _half_fill ():
443
443
self ._path = polypath
444
444
else :
445
445
verts = polypath .vertices
@@ -471,7 +471,7 @@ def _set_hexagon2(self):
471
471
fs = self .get_fillstyle ()
472
472
polypath = Path .unit_regular_polygon (6 )
473
473
474
- if not _half_fill ():
474
+ if not self . _half_fill ():
475
475
self ._path = polypath
476
476
else :
477
477
verts = polypath .vertices
@@ -503,7 +503,7 @@ def _set_octagon(self):
503
503
fs = self .get_fillstyle ()
504
504
polypath = Path .unit_regular_polygon (8 )
505
505
506
- if not _half_fill ():
506
+ if not self . _half_fill ():
507
507
self ._transform .rotate_deg (22.5 )
508
508
self ._path = polypath
509
509
else :
0 commit comments