@@ -1316,7 +1316,6 @@ def test_check_offsets_dtype():
13161316
13171317@pytest .mark .parametrize ('gapcolor' , ['orange' , ['r' , 'k' ]])
13181318@check_figures_equal (extensions = ['png' ])
1319- @mpl .rc_context ({'lines.linewidth' : 20 })
13201319def test_striped_lines (fig_test , fig_ref , gapcolor ):
13211320 ax_test = fig_test .add_subplot (111 )
13221321 ax_ref = fig_ref .add_subplot (111 )
@@ -1328,11 +1327,12 @@ def test_striped_lines(fig_test, fig_ref, gapcolor):
13281327 x = range (1 , 6 )
13291328 linestyles = [':' , '-' , '--' ]
13301329
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 )
13321332
13331333 if isinstance (gapcolor , str ):
13341334 gapcolor = [gapcolor ]
13351335
13361336 for x , gcol , ls in zip (x , itertools .cycle (gapcolor ),
13371337 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