import matplotlib.pyplot as plt
plt.plot([1,2,3,4], [1,4,9,16], 'r*')
plt.axis([0, 5, 0, 20])
plt.show()
Values for the X axis
are between 0 and 5 and for the
Y axis they are between 0 and 20
[xmin, xmax, ymin, ymax]