Skip to content
Snippets Groups Projects

params/mirrors cleaning + usable test suite (issues #11 and #10)

Merged Boman Romain requested to merge testsuite into master
1 file
+ 13
14
Compare changes
  • Side-by-side
  • Inline
@@ -6,10 +6,7 @@ import time
import os
import shutil
import math
from matplotlib import cm
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from fwk.wutils import parseargs
def main():
@@ -26,18 +23,20 @@ def main():
for j in range(0,m2):
cond[i,j] = (2**d[i])/((2./(2*n[j]+1))**d[i])
args = parseargs()
if not args.nogui:
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.gca(projection='3d')
ax.view_init(elev=20., azim=-140.)
fig = plt.figure()
ax = fig.gca(projection='3d')
ax.view_init(elev=20., azim=-140.)
ax.scatter(X, Y, cond)
ax.scatter(X, Y, cond)
ax.set_xlabel('d [-]')
ax.set_ylabel('n [-]')
#ax.set_zscale('log')
print cond
plt.show()
ax.set_xlabel('d [-]')
ax.set_ylabel('n [-]')
#ax.set_zscale('log')
print cond
plt.show()
if __name__ == "__main__":
main()
Loading