Changeset 3509 for trunk/GSASIIphsGUI.py
- Timestamp:
- Jul 25, 2018 9:00:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r3505 r3509 1139 1139 ################################################################################ 1140 1140 ################################################################################ 1141 def SetDrawingDefaults(drawingData): 1142 """Add required items into data['drawing'] array if not present. This does not add 1143 all the items in SetupDrawingData, but it seems that this is not a problem. Perhaps the 1144 two routines could be combined? 1145 """ 1146 defaultDrawing = {'viewPoint':[[0.5,0.5,0.5],[]],'showHydrogen':True, 1147 'backColor':[0,0,0],'depthFog':False,'Zclip':50.0,'cameraPos':50.,'Zstep':0.5, 1148 'radiusFactor':0.85,'contourLevel':1.,'bondRadius':0.1,'ballScale':0.33, 1149 'vdwScale':0.67,'ellipseProb':50,'sizeH':0.50,'unitCellBox':True, 1150 'showABC':True,'selectedAtoms':[],'Atoms':[],'oldxy':[],'magMult':1.0, 1151 'bondList':{},'viewDir':[1,0,0],'Plane':[[0,0,1],False,False,0.0,[255,255,0]]} 1152 for key in defaultDrawing: 1153 if key not in drawingData: drawingData[key] = defaultDrawing[key] 1154 1141 1155 def UpdatePhaseData(G2frame,Item,data): 1142 1156 '''Create the data display window contents when a phase is clicked on … … 5181 5195 SetupDrawingData() 5182 5196 drawingData = data['Drawing'] 5197 SetDrawingDefaults(drawingData) 5183 5198 cx,ct,cs,ci = drawingData['atomPtrs'] 5184 5199 atomData = drawingData['Atoms'] … … 6104 6119 SetupDrawingData() 6105 6120 drawingData = data['Drawing'] 6121 SetDrawingDefaults(drawingData) 6106 6122 6107 6123 G2frame.GetStatusBar().SetStatusText('',1)
Note: See TracChangeset
for help on using the changeset viewer.