import glob
glob.glob('*.csv')
!pwd
glob.glob('data/*.csv')
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
filenames = glob.glob('data/*.csv')
filenames = filenames[0:3]
for f in filenames:
print f
data = np.loadtxt(f, delimiter=',')
fig = plt.figure(figsize=(10.0, 3.0))
axes1 = fig.add_subplot(1, 3, 1)
axes2 = fig.add_subplot(1, 3, 2)
axes3 = fig.add_subplot(1, 3, 3)
axes1.set_ylabel('average')
axes1.plot( data.mean(axis=0) )
axes2.set_ylabel(r'$\frac{max}{min}$')
axes2.plot( data.max(axis=0) )
axes3.set_ylabel('min')
axes3.plot( data.min(axis=0) )
fig.tight_layout()
plt.show(fig)