Konstantin Ladutenko 10 年 前
コミット
00e9bc5a6f
2 ファイル変更4 行追加2 行削除
  1. 2 0
      README.md
  2. 2 2
      tests/python/field-SiAgSi.py

+ 2 - 0
README.md

@@ -1,3 +1,5 @@
+[[/doc/SiAgSi.svg  | height = 300px ]]
+
 How to use scattnlay
 ====================
 

+ 2 - 2
tests/python/field-SiAgSi.py

@@ -73,7 +73,7 @@ m[0, 2] = index_Si/nm
 print "x =", x
 print "m =", m
 
-npts = 1281
+npts = 281
 
 scan = np.linspace(-2.0*x[0, 2], 2.0*x[0, 2], npts)
 
@@ -146,7 +146,7 @@ try:
                      theta1=0.0, theta2=360.0, linewidth=1, color='black')
     ax.add_patch(s3) 
     # End of drawing
-
+    plt.savefig("SiAgSi.svg")
     plt.draw()
 
     plt.show()