@@ -3217,6 +3217,24 @@ def test_scatter_singular_plural_arguments(self):
32173217 facecolors = ["#ffffff" , "#000000" , "#f0f0f0" ],
32183218 facecolor = "#ffffff" )
32193219
3220+ @pytest .mark .parametrize ('edgecolor, facecolor, linestyle' ,
3221+ [('red' , 'blue' , 'solid' ),
3222+ ('red' , 'blue' , 'dashed' ),
3223+ ('red' , 'none' , 'solid' ),
3224+ ('none' , 'blue' , 'solid' )])
3225+ @check_figures_equal ()
3226+ def test_empty_scatter (self , fig_test , fig_ref , edgecolor , facecolor , linestyle ):
3227+ # Verify that a spurious marker is not plotted in the bottom-left corner
3228+ # https://github.com/matplotlib/matplotlib/issues/32219
3229+ ax_test = fig_test .subplots ()
3230+ ax_test .scatter ([], [], ec = edgecolor , fc = facecolor , ls = linestyle , clip_on = False )
3231+ ax_test .set_xlim (0 , 1 )
3232+ ax_test .set_ylim (0 , 1 )
3233+
3234+ ax_ref = fig_ref .subplots ()
3235+ ax_ref .set_xlim (0 , 1 )
3236+ ax_ref .set_ylim (0 , 1 )
3237+
32203238
32213239def _params (c = None , xsize = 2 , * , edgecolors = None , ** kwargs ):
32223240 return (c , edgecolors , kwargs , xsize )
0 commit comments