import numpy as np import matplotlib.pyplot as plt x=np.array([0,1,2,3]) y=np.array([3,8,1,10]) plt.subplot(1,2,1) plt.plot(x,y) plt.show()