Konstantin Ladutenko vor 10 Jahren
Ursprung
Commit
00e9bc5a6f
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  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
 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 "x =", x
 print "m =", m
 print "m =", m
 
 
-npts = 1281
+npts = 281
 
 
 scan = np.linspace(-2.0*x[0, 2], 2.0*x[0, 2], npts)
 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')
                      theta1=0.0, theta2=360.0, linewidth=1, color='black')
     ax.add_patch(s3) 
     ax.add_patch(s3) 
     # End of drawing
     # End of drawing
-
+    plt.savefig("SiAgSi.svg")
     plt.draw()
     plt.draw()
 
 
     plt.show()
     plt.show()