Changeset 1381
- Timestamp:
- Jun 12, 2014 9:51:15 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIgrid.py
r1380 r1381 4968 4968 sizer.Add(line, 0, wx.EXPAND|wx.ALIGN_CENTER|wx.ALL, 10) 4969 4969 4970 def HowDidIgetHere(): 4971 '''Show a traceback with calls that brought us to the current location. 4972 Used for debugging. 4973 ''' 4974 import traceback 4975 print 70*'*' 4976 for i in traceback.format_list(traceback.extract_stack()[:-1]): print(i.strip.rstrip()) 4977 print 70*'*' 4978 4970 4979 if __name__ == '__main__': 4971 4980 app = wx.PySimpleApp() -
trunk/GSASIIphsGUI.py
r1378 r1381 5323 5323 FillSelectPageMenu(G2frame.dataFrame.DataDrawOptions) 5324 5324 UpdateDrawOptions() 5325 wx.CallAfter(G2plt.PlotStructure,G2frame,data )5325 wx.CallAfter(G2plt.PlotStructure,G2frame,data,firstCall=True) 5326 5326 elif text == 'Draw Atoms': 5327 5327 G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.DrawAtomsMenu) … … 5346 5346 G2frame.dataFrame.Bind(wx.EVT_MENU, OnDefineRB, id=G2gd.wxID_DRAWDEFINERB) 5347 5347 UpdateDrawAtoms() 5348 wx.CallAfter(G2plt.PlotStructure,G2frame,data )5348 wx.CallAfter(G2plt.PlotStructure,G2frame,data,firstCall=True) 5349 5349 elif text == 'RB Models': 5350 5350 G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.RigidBodiesMenu) … … 5370 5370 G2frame.dataFrame.Bind(wx.EVT_MENU, OnPeaksClear, id=G2gd.wxID_PEAKSCLEAR) 5371 5371 FillMapPeaksGrid() 5372 wx.CallAfter(G2plt.PlotStructure,G2frame,data )5372 wx.CallAfter(G2plt.PlotStructure,G2frame,data,firstCall=True) 5373 5373 elif text == 'MC/SA': 5374 5374 G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.MCSAMenu) … … 5380 5380 G2frame.dataFrame.Bind(wx.EVT_MENU, OnClearResults, id=G2gd.wxID_MCSACLEARRESULTS) 5381 5381 UpdateMCSA() 5382 wx.CallAfter(G2plt.PlotStructure,G2frame,data )5382 wx.CallAfter(G2plt.PlotStructure,G2frame,data,firstCall=True) 5383 5383 elif text == 'Texture': 5384 5384 G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.TextureMenu) -
trunk/GSASIIplot.py
r1379 r1381 3207 3207 ################################################################################ 3208 3208 3209 def PlotStructure(G2frame,data ):3209 def PlotStructure(G2frame,data,firstCall=False): 3210 3210 '''Crystal structure plotting package. Can show structures as balls, sticks, lines, 3211 3211 thermal motion ellipsoids and polyhedra … … 4139 4139 Draw('focus') 4140 4140 4141 # PlotStructure execution starts here 4141 4142 try: 4142 4143 plotNum = G2frame.G2plotNB.plotList.index(generalData['Name']) … … 4176 4177 pass 4177 4178 Draw('main') 4178 4179 if firstCall: Draw('main') # draw twice the first time that graphics are displayed 4180 4179 4181 ################################################################################ 4180 4182 #### Plot Rigid Body
Note: See TracChangeset
for help on using the changeset viewer.