added a matplotlib example for future plotting
This commit is contained in:
parent
5f5912bc9a
commit
ccc08454e2
23
plots/qhull_vs_delny/plot.py
Normal file
23
plots/qhull_vs_delny/plot.py
Normal 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')
|
Loading…
Reference in New Issue
Block a user