import matplotlib.pyplot as plt
import numpy as np
arr = np.genfromtxt('foo.csv', delimiter=',')
plt.plot(arr[:, (0)], arr[:, (1)], 'b-')
plt.show()
How can I duplicate this simple matlab plot functionality with mathplotlib?