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