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 dfa14fe

Browse filesBrowse files
committed
TST: be explicit about color to make tests pass
1 parent 701bfb0 commit dfa14fe
Copy full SHA for dfa14fe

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed

‎lib/matplotlib/tests/test_cycles.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_cycles.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ def test_linestylecycle_basic():
6969
ax.set_prop_cycle(cycler('ls', ['-', '--', ':']))
7070
xs = np.arange(10)
7171
ys = 0.25 * xs + 2
72-
ax.plot(xs, ys, label='solid', lw=4)
72+
ax.plot(xs, ys, label='solid', lw=4, color='k')
7373
ys = 0.45 * xs + 3
74-
ax.plot(xs, ys, label='dashed', lw=4)
74+
ax.plot(xs, ys, label='dashed', lw=4, color='k')
7575
ys = 0.65 * xs + 4
76-
ax.plot(xs, ys, label='dotted', lw=4)
76+
ax.plot(xs, ys, label='dotted', lw=4, color='k')
7777
ys = 0.85 * xs + 5
78-
ax.plot(xs, ys, label='solid2', lw=4)
78+
ax.plot(xs, ys, label='solid2', lw=4, color='k')
7979
ax.legend(loc='upper left')
8080

8181

@@ -130,8 +130,8 @@ def test_property_collision_plot():
130130
ax.set_prop_cycle('linewidth', [2, 4])
131131
for c in range(1, 4):
132132
ax.plot(np.arange(10), c * np.arange(10), lw=0.1, color='k')
133-
ax.plot(np.arange(10), 4 * np.arange(10))
134-
ax.plot(np.arange(10), 5 * np.arange(10))
133+
ax.plot(np.arange(10), 4 * np.arange(10), color='k')
134+
ax.plot(np.arange(10), 5 * np.arange(10), color='k')
135135

136136

137137
@image_comparison(baseline_images=['property_collision_fill'],

0 commit comments

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