@@ -1311,7 +1311,6 @@ def test_check_offsets_dtype():
1311
1311
1312
1312
@pytest .mark .parametrize ('gapcolor' , ['orange' , ['r' , 'k' ]])
1313
1313
@check_figures_equal (extensions = ['png' ])
1314
- @mpl .rc_context ({'lines.linewidth' : 20 })
1315
1314
def test_striped_lines (fig_test , fig_ref , gapcolor ):
1316
1315
ax_test = fig_test .add_subplot (111 )
1317
1316
ax_ref = fig_ref .add_subplot (111 )
@@ -1323,11 +1322,12 @@ def test_striped_lines(fig_test, fig_ref, gapcolor):
1323
1322
x = range (1 , 6 )
1324
1323
linestyles = [':' , '-' , '--' ]
1325
1324
1326
- ax_test .vlines (x , 0 , 1 , linestyle = linestyles , gapcolor = gapcolor , alpha = 0.5 )
1325
+ ax_test .vlines (x , 0 , 1 , linewidth = 20 , linestyle = linestyles , gapcolor = gapcolor ,
1326
+ alpha = 0.5 )
1327
1327
1328
1328
if isinstance (gapcolor , str ):
1329
1329
gapcolor = [gapcolor ]
1330
1330
1331
1331
for x , gcol , ls in zip (x , itertools .cycle (gapcolor ),
1332
1332
itertools .cycle (linestyles )):
1333
- ax_ref .axvline (x , 0 , 1 , linestyle = ls , gapcolor = gcol , alpha = 0.5 )
1333
+ ax_ref .axvline (x , 0 , 1 , linewidth = 20 , linestyle = ls , gapcolor = gcol , alpha = 0.5 )
0 commit comments