8000 shorten colors syntax · matplotlib/matplotlib@efb46a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit efb46a6

Browse files
author
ojeda-e
committed
shorten colors syntax
1 parent 1e03157 commit efb46a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_lines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def test_input_copy(fig_test, fig_ref):
358358
def test_markevery_prop_cycle(fig_test, fig_ref, cases):
359359

360360
cmap = plt.get_cmap('jet')
361-
colors = cmap(np.linspace(0.2, 0.8, 100))[:len(cases)]
361+
colors = cmap(np.linspace(0.2, 0.8, len(cases)))
362362

363363
x = np.linspace(0, 2 * np.pi)
364364
offsets = np.linspace(0, 2 * np.pi, 11, endpoint=False)

0 commit comments

Comments
 (0)
0