Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfa14fe

Browse files
committed
TST: be explicit about color to make tests pass
1 parent 701bfb0 commit dfa14fe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/matplotlib/tests/test_cycles.py

Lines 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)