Changes in sesansdemo.py [10576d1:c97724e] in sasmodels


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sesansdemo.py

    r10576d1 rc97724e  
    1010 
    1111# q-range parameters 
     12 
    1213q = arange(0.0003, 1.0, 0.0003);    # [nm^-1] range wide enough for  Hankel transform 
    1314dq=(q[1]-q[0])*1e9;   # [m^-1] step size in q, needed for integration 
     
    3435 
    3536clf() 
    36 subplot(1,2,1)  # plot the SANS calculation 
     37subplot(211)  # plot the SANS calculation 
    3738plot(q,I,'k') 
    3839loglog(q,I) 
     
    5556PP=exp(th*Lambda**2/4/pi/pi*(G-G[0])); 
    5657 
    57 subplot(1,2,2) 
     58subplot(212) 
    5859plot(zz,PP,'k',label="Hankel transform") # Hankel transform 1D 
    5960xlabel('spin-echo length [nm]') 
     
    6263 
    6364# Cosine transformation of 2D scattering patern 
    64 if True: 
     65if False: 
    6566    qy,qz = meshgrid(q,q) 
    6667    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.