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