@@ -1311,7 +1311,6 @@ def test_check_offsets_dtype():
13111311
13121312@pytest .mark .parametrize ('gapcolor' , ['orange' , ['r' , 'k' ]])
13131313@check_figures_equal (extensions = ['png' ])
1314- @mpl .rc_context ({'lines.linewidth' : 20 })
13151314def test_striped_lines (fig_test , fig_ref , gapcolor ):
13161315 ax_test = fig_test .add_subplot (111 )
13171316 ax_ref = fig_ref .add_subplot (111 )
@@ -1323,11 +1322,12 @@ def test_striped_lines(fig_test, fig_ref, gapcolor):
13231322 x = range (1 , 6 )
13241323 linestyles = [':' , '-' , '--' ]
13251324
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 )
13271327
13281328 if isinstance (gapcolor , str ):
13291329 gapcolor = [gapcolor ]
13301330
13311331 for x , gcol , ls in zip (x , itertools .cycle (gapcolor ),
13321332 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