@@ -4180,7 +4180,7 @@ def _parse_scatter_color_args(c, edgecolors, kwargs, xshape, yshape,
41804180 label_namer = "y" )
41814181 def scatter (self , x , y , s = None , c = None , marker = None , cmap = None , norm = None ,
41824182 vmin = None , vmax = None , alpha = None , linewidths = None ,
4183- verts = None , edgecolors = None , * , plotinvalid = False ,
4183+ verts = None , edgecolors = None , * , plotnonfinite = False ,
41844184 ** kwargs ):
41854185 """
41864186 A scatter plot of *y* vs *x* with varying marker size and/or color.
@@ -4257,8 +4257,8 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
42574257 For non-filled markers, the *edgecolors* kwarg is ignored and
42584258 forced to 'face' internally.
42594259
4260- plotinvalid : boolean, optional, default: False
4261- Set to plot valid points with invalid color , in conjunction with
4260+ plotnonfinite : boolean, optional, default: False
4261+ Set to plot points with nonfinite *c* , in conjunction with
42624262 `~matplotlib.colors.Colormap.set_bad`.
42634263
42644264 Returns
@@ -4314,7 +4314,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
43144314 c , edgecolors , kwargs , xshape , yshape ,
43154315 get_next_color_func = self ._get_patches_for_fill .get_next_color )
43164316
4317- if plotinvalid and colors is None :
4317+ if plotnonfinite and colors is None :
43184318 c = np .ma .masked_invalid (c )
43194319 x , y , s , colors , edgecolors , linewidths = \
43204320 cbook ._combine_masks (x , y , s , colors , edgecolors , linewidths )
0 commit comments