@@ -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 , * , plotinvalid = False ,
41844184 ** kwargs ):
41854185 """
41864186 A scatter plot of *y* vs *x* with varying marker size and/or color.
@@ -4314,25 +4314,14 @@ 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 == None:
4318- # # Do full color mapping; don't remove invalid c entries.
4319- # ind = np.arange(len(c))
4320- # x, y, s, ind, colors, edgecolors, linewidths =\
4321- # cbook.delete_masked_points(
4322- # x, y, s, ind, colors, edgecolors, linewidths)
4323- # c = np.ma.masked_invalid(c[ind])
4324- # else:
4325- # x, y, s, c, colors, edgecolors, linewidths =\
4326- # cbook.delete_masked_points(
4327- # x, y, s, c, colors, edgecolors, linewidths)
4328-
4329- if plotinvalid and colors == None :
4317+ if plotinvalid and colors is None :
43304318 c = np .ma .masked_invalid (c )
4331- x , y , s , colors , edgecolors , linewidths = \
4332- cbook .combine_masks (x , y , s , colors , edgecolors , linewidths )
4319+ x , y , s , colors , edgecolors , linewidths = \
4320+ cbook ._combine_masks (x , y , s , colors , edgecolors , linewidths )
43334321 else :
4334- x , y , s , c , colors , edgecolors , linewidths = \
4335- cbook .combine_masks (x , y , s , c , colors , edgecolors , linewidths )
4322+ x , y , s , c , colors , edgecolors , linewidths = \
4323+ cbook ._combine_masks (
4324+ x , y , s , c , colors , edgecolors , linewidths )
43364325
43374326 scales = s # Renamed for readability below.
43384327
0 commit comments