@@ -3245,14 +3245,13 @@ def test_hist_stacked_weighted():
3245
3245
@image_comparison (['stem.png' ], style = 'mpl20' , remove_text = True )
3246
3246
def test_stem (use_line_collection ):
3247
3247
x = np .linspace (0.1 , 2 * np .pi , 100 )
3248
- args = (x , np .cos (x ))
3249
- # Label is a single space to force a legend to be drawn, but to avoid any
3250
- # text being drawn
3251
- kwargs = dict (linefmt = 'C2-.' , markerfmt = 'k+' , basefmt = 'C1-.' ,
3252
- label = ' ' , use_line_collection = use_line_collection )
3253
3248
3254
3249
fig , ax = plt .subplots ()
3255
- ax .stem (* args , ** kwargs )
3250
+ # Label is a single space to force a legend to be drawn, but to avoid any
3251
+ # text being drawn
3252
+ ax .stem (x , np .cos (x ),
3253
+ linefmt = 'C2-.' , markerfmt = 'k+' , basefmt = 'C1-.' , label = ' ' ,
3254
+ use_line_collection = use_line_collection )
3256
3255
3257
3256
ax .legend ()
3258
3257
@@ -3284,12 +3283,11 @@ def test_stem_dates():
3284
3283
@image_comparison (['stem_orientation.png' ], style = 'mpl20' , remove_text = True )
3285
3284
def test_stem_orientation (use_line_collection ):
3286
3285
x = np .linspace (0.1 , 2 * np .pi , 50 )
3287
- args = (x , np .cos (x ))
3288
- kwargs = dict (linefmt = 'C2-.' , markerfmt = 'kx' , basefmt = 'C1-.' ,
3289
- use_line_collection = use_line_collection )
3290
3286
3291
3287
fig , ax = plt .subplots ()
3292
- ax .stem (* args , ** kwargs , orientation = 'horizontal' )
3288
+ ax .stem (x , np .cos (x ),
3289
+ linefmt = 'C2-.' , markerfmt = 'kx' , basefmt = 'C1-.' ,
3290
+ use_line_collection = use_line_collection , orientation = 'horizontal' )
3293
3291
3294
3292
3295
3293
@image_comparison (['hist_stacked_stepfilled_alpha' ])
0 commit comments