Changes in sesansdemo.py [10576d1:c97724e] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sesansdemo.py
r10576d1 rc97724e 10 10 11 11 # q-range parameters 12 12 13 q = arange(0.0003, 1.0, 0.0003); # [nm^-1] range wide enough for Hankel transform 13 14 dq=(q[1]-q[0])*1e9; # [m^-1] step size in q, needed for integration … … 34 35 35 36 clf() 36 subplot( 1,2,1) # plot the SANS calculation37 subplot(211) # plot the SANS calculation 37 38 plot(q,I,'k') 38 39 loglog(q,I) … … 55 56 PP=exp(th*Lambda**2/4/pi/pi*(G-G[0])); 56 57 57 subplot( 1,2,2)58 subplot(212) 58 59 plot(zz,PP,'k',label="Hankel transform") # Hankel transform 1D 59 60 xlabel('spin-echo length [nm]') … … 62 63 63 64 # Cosine transformation of 2D scattering patern 64 if True:65 if False: 65 66 qy,qz = meshgrid(q,q) 66 67 qr=R*sqrt(qy**2 + qz**2); # reuse variable names Hankel transform, but now 2D
Note: See TracChangeset
for help on using the changeset viewer.