import matplotlib.pyplot as plt
plt.plot( [1,2,3,4] ) #values for y-axis

plt.xlabel("------------Index----------->")
plt.ylabel("------------some numbers----------->")
plt.show()

#y = [1,2,3,4]
#x = [0, 1, 2, 3] index position