from matplotlib import pyplot as plt z1=list(input().split()) x = [] for i in range(3): x.append(z1[i]) z2=list(input().split()) y = [] for i in range(3): y.append(int(z2[i])) plt.plot(x,y) plt.title('Epic Info') plt.ylabel('Y axis') plt.xlabel('X axis') plt.show() from matplotlib import pyplot as plt from matplotlib import style style.use('ggplot') x = [5,8,10] y = [12,16,6] x2 = [6,9,11] y2 = [6,15,7] # can plot specifically, after just showing the defaults: plt.plot(x,y,linewidth=5) plt.plot(x2,y2,linewidth=5) plt.title('Epic Info') plt.ylabel('Y axis') plt.xlabel('X axis') plt.show()