@@ -3726,7 +3726,7 @@ def dopatch(xs, ys, **kwargs):
37263726 'facecolors' , 'color' ],
37273727 label_namer = "y" )
37283728 @docstring .dedent_interpd
3729- def scatter (self , x , y , s = 20 , c = None , marker = 'o' , cmap = None , norm = None ,
3729+ def scatter (self , x , y , s = None , c = None , marker = 'o' , cmap = None , norm = None ,
37303730 vmin = None , vmax = None , alpha = None , linewidths = None ,
37313731 verts = None , edgecolors = None ,
37323732 ** kwargs ):
@@ -3739,8 +3739,8 @@ def scatter(self, x, y, s=20, c=None, marker='o', cmap=None, norm=None,
37393739 x, y : array_like, shape (n, )
37403740 Input data
37413741
3742- s : scalar or array_like, shape (n, ), optional, default: 20
3743- size in points^2.
3742+ s : scalar or array_like, shape (n, ), optional
3743+ size in points^2. Default is `rcParams['lines.markersize'] ** 2`.
37443744
37453745 c : color, sequence, or sequence of color, optional, default: 'b'
37463746 `c` can be a single color format string, or a sequence of color
@@ -3861,6 +3861,12 @@ def scatter(self, x, y, s=20, c=None, marker='o', cmap=None, norm=None,
38613861 if x .size != y .size :
38623862 raise ValueError ("x and y must be the same size" )
38633863
3864+ if s is None :
3865+ if rcParams ['_internal.classic_mode' ]:
3866+ s = 20
3867+ else :
3868+ s = rcParams ['lines.markersize' ] ** 2.0
3869+
38643870 s = np .ma .ravel (s ) # This doesn't have to match x, y in size.
38653871
38663872 # After this block, c_array will be None unless
0 commit comments