Changeset 8267e0b in sasmodels


Ignore:
Timestamp:
Mar 22, 2017 3:54:34 PM (7 months ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, costrafo411, doc_update, flexible-cylinder, ticket-776-orientation
Children:
b00a646
Parents:
4050e6a
Message:

orientation: update orientational dispersion demo app with theta=0 along the beam

File:
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.