Basic Plot

import matplotlib.pyplot as plt
x = [1, 2, 3, 4]
y = [2, 4, 9, 16]
x, y
([1, 2, 3, 4], [2, 4, 9, 16])
plt.plot(x, y, 'ro')
plt.axis([0, 10, 0, 20])
[0, 10, 0, 20]

png