Changeset 4f6f9431 in sasmodels


Ignore:
Timestamp:
Feb 28, 2018 12:14:29 PM (6 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:
6868151
Parents:
893bea2
Message:

realspace: fix major/minor axis mapping between monte carlo and analytic parameters; use square aspect ratio on points plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • explore/realspace.py

    r893bea2 r4f6f9431  
    518518    index = np.random.choice(n, size=500) if n > 500 else slice(None, None) 
    519519    ax.scatter(points[index, 0], points[index, 1], points[index, 2], c=rho[index]) 
     520    # make square axes 
     521    minmax = np.array([points.min(), points.max()]) 
     522    ax.scatter(minmax, minmax, minmax, c='w') 
    520523    #low, high = points.min(axis=0), points.max(axis=0) 
    521524    #ax.axis([low[0], high[0], low[1], high[1], low[2], high[2]]) 
     
    736739        scale=1, 
    737740        background=0, 
    738         radius=rb, 
    739         x_core=ra/rb, 
     741        radius=ra, 
     742        x_core=rb/ra, 
    740743        length=length, 
    741744        sld_core=sld_core, 
Note: See TracChangeset for help on using the changeset viewer.