From ccc08454e232d68ab524f7eff5f39ffa4dd4f078 Mon Sep 17 00:00:00 2001 From: Stephen Mardson McQuay Date: Mon, 28 Mar 2011 11:05:58 -0600 Subject: [PATCH] added a matplotlib example for future plotting --- plots/qhull_vs_delny/plot.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 plots/qhull_vs_delny/plot.py diff --git a/plots/qhull_vs_delny/plot.py b/plots/qhull_vs_delny/plot.py new file mode 100644 index 0000000..01ec604 --- /dev/null +++ b/plots/qhull_vs_delny/plot.py @@ -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')