Changeset e5d7a60 in sasmodels


Ignore:
Timestamp:
Jun 29, 2017 1:14:24 AM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
a2fcbd8
Parents:
4f611f1
Message:

play with cylinder integral

File:
1 edited

Legend:

Unmodified
Added
Removed
  • explore/symint.py

    r4f611f1 re5d7a60  
    103103    Zq = kernel(q=q, theta=theta) 
    104104    Zq *= abs(sin(theta)) 
    105     pylab.semilogy(degrees(theta), np.fmax(Zq, 1.e-6)) 
    106     pylab.title("%s Z(q) for q=%g" % (KERNEL.__name__, q)) 
     105    pylab.semilogy(degrees(theta), np.fmax(Zq, 1.e-6), label="Q=%g"%q) 
     106    pylab.title("%s I(q, theta) sin(theta)" % (KERNEL.__name__,)) 
    107107    pylab.xlabel("theta (degrees)") 
    108108    pylab.ylabel("Iq 1/cm") 
    109     pylab.show() 
    110109 
    111110NORM, KERNEL = make_cylinder(radius=10., length=100000.) 
     
    125124    gridded_integrals(Q, n=2**19+1) 
    126125    #scipy_romberg(Q) 
    127     plot(Q, n=2000) 
     126    plot(0.5, n=2000) 
     127    plot(0.6, n=2000) 
     128    plot(0.8, n=2000) 
     129    pylab.legend() 
     130    pylab.show() 
Note: See TracChangeset for help on using the changeset viewer.