Changeset cff2939 in sasmodels


Ignore:
Timestamp:
Mar 4, 2019 5:28:42 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:
31d5187
Parents:
4057e06
Message:

move extra made available for use of unicode greek letters into slider width

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/jitter.py

    r4057e06 rcff2939  
    970970    import matplotlib.pyplot as plt 
    971971    from matplotlib.widgets import Slider 
    972      
     972 
    973973    ## create the plot window 
    974974    #plt.hold(True) 
     
    985985        pass 
    986986 
    987  
    988987    # CRUFT: use axisbg instead of facecolor for matplotlib<2 
    989988    facecolor_prop = 'facecolor' if mpl.__version__ > '2' else 'axisbg' 
     
    991990 
    992991    ## add control widgets to plot 
    993     axes_theta = plt.axes([0.1, 0.15, 0.45, 0.04], **props) 
    994     axes_phi = plt.axes([0.1, 0.1, 0.45, 0.04], **props) 
    995     axes_psi = plt.axes([0.1, 0.05, 0.45, 0.04], **props) 
    996     stheta = Slider(axes_theta, 'Theta', -90, 90, valinit=theta) 
    997     sphi = Slider(axes_phi, 'Phi', -180, 180, valinit=phi) 
    998     spsi = Slider(axes_psi, 'Psi', -180, 180, valinit=psi) 
    999  
    1000     axes_dtheta = plt.axes([0.75, 0.15, 0.15, 0.04], **props) 
    1001     axes_dphi = plt.axes([0.75, 0.1, 0.15, 0.04], **props) 
    1002     axes_dpsi = plt.axes([0.75, 0.05, 0.15, 0.04], **props) 
     992    axes_theta = plt.axes([0.05, 0.15, 0.50, 0.04], **props) 
     993    axes_phi = plt.axes([0.05, 0.10, 0.50, 0.04], **props) 
     994    axes_psi = plt.axes([0.05, 0.05, 0.50, 0.04], **props) 
     995    stheta = Slider(axes_theta, u'Ξ', -90, 90, valinit=0) 
     996    sphi = Slider(axes_phi, u'φ', -180, 180, valinit=0) 
     997    spsi = Slider(axes_psi, u'ψ', -180, 180, valinit=0) 
     998 
     999    axes_dtheta = plt.axes([0.70, 0.15, 0.20, 0.04], **props) 
     1000    axes_dphi = plt.axes([0.70, 0.1, 0.20, 0.04], **props) 
     1001    axes_dpsi = plt.axes([0.70, 0.05, 0.20, 0.04], **props) 
    10031002 
    10041003    # Note: using ridiculous definition of rectangle distribution, whose width 
Note: See TracChangeset for help on using the changeset viewer.