@@ -3245,14 +3245,13 @@ def test_hist_stacked_weighted():
32453245@image_comparison (['stem.png' ], style = 'mpl20' , remove_text = True )
32463246def test_stem (use_line_collection ):
32473247 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 )
32533248
32543249 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 )
32563255
32573256 ax .legend ()
32583257
@@ -3284,12 +3283,11 @@ def test_stem_dates():
32843283@image_comparison (['stem_orientation.png' ], style = 'mpl20' , remove_text = True )
32853284def test_stem_orientation (use_line_collection ):
32863285 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 )
32903286
32913287 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' )
32933291
32943292
32953293@image_comparison (['hist_stacked_stepfilled_alpha' ])
0 commit comments