added a matplotlib example for future plotting

This commit is contained in:
Stephen McQuay 2011-03-28 11:05:58 -06:00
parent 5f5912bc9a
commit ccc08454e2

View File

@ -0,0 +1,23 @@
import numpy as np
import matplotlib.pyplot as plt
bash = np.loadtxt('output.bash.cgd', unpack = True)
py = np.loadtxt('output.python.cgd', unpack = True)
plt.figure(1)
ax = plt.subplot(211)
ax.set_title("up")
plt.plot(bash[0], bash[1], 'b--')
plt.ylabel('time (sec)')
ax = plt.subplot(212)
ax.set_title("down")
plt.plot(py[0], py[1])
plt.xlabel('total points')
plt.ylabel('time (sec)')
plt.savefig('asdf.png')