Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3900fa2

Browse filesBrowse files
rcomermeeseeksmachine
authored andcommitted
Backport PR matplotlib#28737: TST: Fix image comparison directory for test_striped_lines
1 parent 18eef49 commit 3900fa2
Copy full SHA for 3900fa2

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎lib/matplotlib/tests/test_collections.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_collections.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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})
13201319
def 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

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.