Changeset 0db85af in sasmodels for explore/jitter.py


Ignore:
Timestamp:
Oct 28, 2017 9:33:21 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:
dd4d95d
Parents:
3d40839
git-author:
Paul Kienzle <pkienzle@…> (10/28/17 21:33:05)
git-committer:
Paul Kienzle <pkienzle@…> (10/28/17 21:33:21)
Message:

Now allowed '-' before and after '$', such as 1-$\sigma$ or $x$-$y$-$z$

File:
1 edited

Legend:

Unmodified
Added
Removed
  • explore/jitter.py

    rb9578fc r0db85af  
    496496    # the maximum width to 90. 
    497497    dlimit = 30 if dist == 'gaussian' else 90/sqrt(3) 
    498     sdtheta = Slider(axdtheta, 'dTheta', 0, dlimit, valinit=dtheta) 
     498    sdtheta = Slider(axdtheta, 'dTheta', 0, 2*dlimit, valinit=dtheta) 
    499499    sdphi = Slider(axdphi, 'dPhi', 0, 2*dlimit, valinit=dphi) 
    500500    sdpsi = Slider(axdpsi, 'dPsi', 0, 2*dlimit, valinit=dpsi) 
     
    512512        draw_jitter(ax, view, jitter, dist=dist, size=size) 
    513513        #draw_jitter(ax, view, (0,0,0)) 
    514         draw_mesh(ax, view, jitter, dist=dist) 
     514        draw_mesh(ax, view, jitter, dist=dist, n=30) 
    515515        draw_scattering(calculator, ax, view, jitter, dist=dist) 
    516516        plt.gcf().canvas.draw() 
Note: See TracChangeset for help on using the changeset viewer.