Changeset ba62072 in sasmodels for explore


Ignore:
Timestamp:
May 16, 2017 9:43:24 AM (8 years ago)
Author:
GitHub <noreply@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3a45c2c, bb4b509
Parents:
630156b (diff), d77eca8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Paul Butler <butlerpd@…> (05/16/17 09:43:24)
git-committer:
GitHub <noreply@…> (05/16/17 09:43:24)
Message:

Merge pull request #37 from SasView?/ticket-890

Ticket 890: use new orientation definition for asymmetric shapes

Location:
explore
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • explore/angular_pd.py

    r12eb36b r8267e0b  
    4747 
    4848def draw_mesh_new(ax, theta, dtheta, phi, dphi, flow, radius=10., dist='gauss'): 
    49     theta_center = radians(theta) 
     49    theta_center = radians(90-theta) 
    5050    phi_center = radians(phi) 
    5151    flow_center = radians(flow) 
     
    137137                              radius=11., dist=dist) 
    138138        if not axis.startswith('d'): 
    139             ax.view_init(elev=theta, azim=phi) 
     139            ax.view_init(elev=90-theta if use_new else theta, azim=phi) 
    140140        plt.gcf().canvas.draw() 
    141141 
Note: See TracChangeset for help on using the changeset viewer.