Changeset cff2939 in sasmodels
- Timestamp:
- Mar 4, 2019 5:28:42 PM (6 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/jitter.py
r4057e06 rcff2939 970 970 import matplotlib.pyplot as plt 971 971 from matplotlib.widgets import Slider 972 972 973 973 ## create the plot window 974 974 #plt.hold(True) … … 985 985 pass 986 986 987 988 987 # CRUFT: use axisbg instead of facecolor for matplotlib<2 989 988 facecolor_prop = 'facecolor' if mpl.__version__ > '2' else 'axisbg' … … 991 990 992 991 ## 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.7 5, 0.15, 0.15, 0.04], **props)1001 axes_dphi = plt.axes([0.7 5, 0.1, 0.15, 0.04], **props)1002 axes_dpsi = plt.axes([0.7 5, 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) 1003 1002 1004 1003 # Note: using ridiculous definition of rectangle distribution, whose width
Note: See TracChangeset
for help on using the changeset viewer.