Changeset 1604 for trunk/GSASIIphsGUI.py
- Timestamp:
- Dec 11, 2014 3:27:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r1601 r1604 110 110 generalData['POhkl'] = [0,0,1] 111 111 if 'Map' not in generalData: 112 generalData['Map'] = mapDefault 112 generalData['Map'] = {} 113 generalData['Map'].update(mapDefault) 113 114 if 'Flip' not in generalData: 114 115 generalData['Flip'] = {'RefList':'','Resolution':0.5,'Norm element':'None', … … 135 136 generalData['SSGData'] = {} 136 137 if '4DmapData' not in generalData: 137 generalData['4DmapData'] = mapDefault 138 generalData['4DmapData'] = {} 139 generalData['4DmapData'].update(mapDefault) 138 140 generalData['4DmapData'].update({'MapType':'Fobs'}) 139 141 # end of patches … … 1970 1972 1971 1973 def OnShowWave(event): 1972 mapBtn.SetValue(False) 1973 G2plt.ModulationPlot(G2frame,data,atom) 1974 Obj = event.GetEventObject() 1975 atom = Indx[Obj.GetId()] 1976 Ax = Obj.GetValue() 1977 G2plt.ModulationPlot(G2frame,data,atom,Ax) 1974 1978 1975 1979 atomSizer = wx.BoxSizer(wx.HORIZONTAL) … … 1979 1983 waveType.Bind(wx.EVT_COMBOBOX,OnWaveType) 1980 1984 atomSizer.Add(waveType,0,WACV) 1981 mapBtn = wx.CheckBox(waveData,label='Show contour map?') 1982 mapBtn.Bind(wx.EVT_CHECKBOX, OnShowWave) 1983 Indx[mapBtn.GetId()] = atom 1984 atomSizer.Add(mapBtn,0,WACV) 1985 axchoice = ['x','y','z'] 1986 atomSizer.Add(wx.StaticText(waveData,label=' Show contour map for axis:'),0,WACV) 1987 mapSel = wx.ComboBox(waveData,value=' ',choices=axchoice, 1988 style=wx.CB_READONLY|wx.CB_DROPDOWN) 1989 mapSel.Bind(wx.EVT_COMBOBOX,OnShowWave) 1990 Indx[mapSel.GetId()] = atom 1991 atomSizer.Add(mapSel,0,WACV) 1985 1992 return atomSizer 1986 1993 … … 2059 2066 2060 2067 Map = generalData['4DmapData'] 2068 Map['Resolution'] = 0.25 2061 2069 refList = data['Histograms'].keys() 2062 2070 mapSizer = wx.BoxSizer(wx.HORIZONTAL) … … 2084 2092 typeNames = {'Sfrac':' Site fraction','Spos':' Position','Sadp':' Thermal motion','Smag':' Magnetic moment'} 2085 2093 numVals = {'Sfrac':2,'Spos':6,'Sadp':12,'Smag':6} 2086 posNames = ['Xsin','Ysin','Zsin','Xcos','Y sin','Zsin']2094 posNames = ['Xsin','Ysin','Zsin','Xcos','Ycos','Zcos'] 2087 2095 adpNames = ['U11sin','U22sin','U33sin','U12sin','U13sin','U23sin', 2088 2096 'U11cos','U22cos','U33cos','U12cos','U13cos','U23cos']
Note: See TracChangeset
for help on using the changeset viewer.