@@ -222,9 +222,6 @@ class MarkerStyle:
222222 fillstyles = ('full' , 'left' , 'right' , 'bottom' , 'top' , 'none' )
223223 _half_fillstyles = ('left' , 'right' , 'bottom' , 'top' )
224224
225- # TODO: Is this ever used as a non-constant?
226- _point_size_reduction = 0.5
227-
228225 _unset = object () # For deprecation of MarkerStyle(<noargs>).
229226
230227 def __init__ (self , marker = _unset , fillstyle = None ,
@@ -553,8 +550,8 @@ def _set_mathtext_path(self):
553550 def _half_fill (self ):
554551 return self .get_fillstyle () in self ._half_fillstyles
555552
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 )
558555 self ._snap_threshold = np .inf
559556 if not self ._half_fill ():
560557 self ._path = Path .unit_circle ()
@@ -565,6 +562,9 @@ def _set_circle(self, reduction=1.0):
565562 {'right' : 0 , 'top' : 90 , 'left' : 180 , 'bottom' : 270 }[fs ])
566563 self ._alt_transform = self ._transform .frozen ().rotate_deg (180. )
567564
565+ def _set_point (self ):
566+ self ._set_circle (size = 0.5 )
567+
568568 def _set_pixel (self ):
569569 self ._path = Path .unit_rectangle ()
570570 # Ideally, you'd want -0.5, -0.5 here, but then the snapping
@@ -579,9 +579,6 @@ def _set_pixel(self):
579579 self ._transform = Affine2D ().translate (- 0.49999 , - 0.49999 )
580580 self ._snap_threshold = None
581581
582- def _set_point (self ):
583- self ._set_circle (reduction = self ._point_size_reduction )
584-
585582 _triangle_path = Path ([[0 , 1 ], [- 1 , - 1 ], [1 , - 1 ], [0 , 1 ]], closed = True )
586583 # Going down halfway looks to small. Golden ratio is too far.
587584 _triangle_path_u = Path ([[0 , 1 ], [- 3 / 5 , - 1 / 5 ], [3 / 5 , - 1 / 5 ], [0 , 1 ]],
0 commit comments