Changeset e309e23 in sasmodels


Ignore:
Timestamp:
Feb 8, 2018 5:32:32 PM (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:
13bd583
Parents:
54a5024
Message:

multiscat: improved plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • explore/multiscat.py

    r54a5024 re309e23  
    162162            if plot and powers: 
    163163                import pylab 
    164                 for k, Ipower in enumerate(Iq_powers): 
    165                     pylab.loglog(q_corners, Ipower, label="scattering=%d"%(k+1)) 
     164                L = -np.log(1-self.probability) 
     165                pylab.loglog(q_corners, Iq, label="total %g"%self.probability) 
     166                for n, Ipower in enumerate(Iq_powers): 
     167                    k = n+1 
     168                    w = L**(k-1)/gamma(k+1) 
     169                    pylab.loglog(q_corners, w*Ipower, label="scattering**%d"%k) 
    166170                pylab.legend() 
    167171                pylab.figure() 
Note: See TracChangeset for help on using the changeset viewer.