import matplotlib.pyplot as plt import numpy as np x=np.array([1,2,3,4]) y=np.array([2,5,7,4]) plt.plot(x,y) plt.show()