#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt a=np.loadtxt("fall.dat") fig1=plt.figure(1,figsize=(10,5)) p1=plt.subplot(131) p2=plt.subplot(132) p3=plt.subplot(133) p1.plot(a[:,5],a[:,6],color="red",label="vel(h)") p2.plot(a[:,5],a[:,7],color="black",label="accel(h)") p3.plot(a[:,0]/60.,a[:,5],color="black",label="h(t)") p1.grid(color="black") p2.grid(color="black") p3.grid(color="black") p1.set_title("kiirus") p2.set_title("kiirendus") p1.set_xlabel("h") p1.set_ylabel("v km/s") p2.set_xlabel("h km") p2.set_ylabel("a m/s2") p3.set_xlabel("t,min ") p3.set_ylabel("h,km") p1.legend(loc='upper right') p2.legend(loc='upper right') p3.legend(loc='upper right') plt.show() #fig1.savefig("out.jpg")