1import numpy as np
2import matplotlib.pylab as plt
3plt.rcParams["figure.figsize"] = [7, 7]
4plt.rcParams["figure.autolayout"] = True
5x = np.array([0,1])
6y = np.array([1,1])
7n = 50
8colors = plt.cm.hsv(np.linspace(0, 1, n))
9for i in range(n):
10 plt.plot(x,y * i, color=colors[i])
11plt.show()