@@ -222,9 +222,6 @@ class MarkerStyle:
222
222
fillstyles = ('full' , 'left' , 'right' , 'bottom' , 'top' , 'none' )
223
223
_half_fillstyles = ('left' , 'right' , 'bottom' , 'top' )
224
224
225
- # TODO: Is this ever used as a non-constant?
226
- _point_size_reduction = 0.5
227
-
228
225
_unset = object () # For deprecation of MarkerStyle(<noargs>).
229
226
230
227
def __init__ (self , marker = _unset , fillstyle = None ,
@@ -553,8 +550,8 @@ def _set_mathtext_path(self):
553
550
def _half_fill (self ):
554
551
return self .get_fillstyle () in self ._half_fillstyles
555
552
556
- def _set_circle (self , reduction = 1.0 ):
557
- self ._transform = Affine2D ().scale (0.5 * reduction )
553
+ def _set_circle (self , size = 1.0 ):
554
+ self ._transform = Affine2D ().scale (0.5 * size )
558
555
self ._snap_threshold = np .inf
559
556
if not self ._half_fill ():
560
557
self ._path = Path .unit_circle ()
@@ -565,6 +562,9 @@ def _set_circle(self, reduction=1.0):
565
562
{'right' : 0 , 'top' : 90 , 'left' : 180 , 'bottom' : 270 }[fs ])
566
563
self ._alt_transform = self ._transform .frozen ().rotate_deg (180. )
567
564
565
+ def _set_point (self ):
566
+ self ._set_circle (size = 0.5 )
567
+
568
568
def _set_pixel (self ):
569
569
self ._path = Path .unit_rectangle ()
570
570
# Ideally, you'd want -0.5, -0.5 here, but then the snapping
@@ -579,9 +579,6 @@ def _set_pixel(self):
579
579
self ._transform = Affine2D ().translate (- 0.49999 , - 0.49999 )
580
580
self ._snap_threshold = None
581
581
582
- def _set_point (self ):
583
- self ._set_circle (reduction = self ._point_size_reduction )
584
-
585
582
_triangle_path = Path ([[0 , 1 ], [- 1 , - 1 ], [1 , - 1 ], [0 , 1 ]], closed = True )
586
583
# Going down halfway looks to small. Golden ratio is too far.
587
584
_triangle_path_u = Path ([[0 , 1 ], [- 3 / 5 , - 1 / 5 ], [3 / 5 , - 1 / 5 ], [0 , 1 ]],
0 commit comments