Changeset 3101 for trunk/GSASIIplot.py
- Timestamp:
- Sep 28, 2017 9:16:15 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r3082 r3101 5711 5711 uColors = [Rd,Gr,Bl,Wt-Bc, Wt-Bc,Wt-Bc,Wt-Bc,Wt-Bc, Wt-Bc,Wt-Bc,Wt-Bc,Wt-Bc] 5712 5712 G2frame.tau = 0. 5713 G2frame.seq = 0 5713 5714 5714 5715 def OnKeyBox(event): … … 5856 5857 elif key == '-': 5857 5858 G2frame.tau -= 0.1 5858 G2frame.tau %= 1. #force 0-1 range 5859 G2frame.tau %= 1. #force 0-1 range; makes loop 5859 5860 G2frame.G2plotNB.status.SetStatusText('Modulation tau = %.2f'%(G2frame.tau),1) 5860 5861 data['Drawing']['Atoms'],Fade = G2mth.ApplyModulation(data,G2frame.tau) #modifies drawing atom array! … … 5864 5865 Fade += 1 5865 5866 Draw('key down',Fade) 5866 else: 5867 pass #TODO sequential result movie here 5867 else: #TODO sequential result movie here 5868 SeqId = G2gd.GetGPXtreeItemId(G2frame, G2frame.root, 'Sequential results') 5869 if SeqId: 5870 Seqdata = G2frame.GPXtree.GetItemPyData(SeqId) 5871 histNames = [seqKey for seqKey in Seqdata.keys() if 'PWDR' in seqKey] 5872 histNames.sort() 5873 if key == '0': 5874 G2frame.seq = 0 5875 elif key in ['=','+']: 5876 G2frame.seq += 1 5877 elif key in ['-','_']: 5878 G2frame.seq -= 1 5879 G2frame.seq %= len(histNames) #makes loop 5880 G2frame.G2plotNB.status.SetStatusText('Seq. data file: %s'%(histNames[G2frame.seq]),1) 5881 5882 5883 5884 SetDrawAtomsText(data['Drawing']['Atoms']) 5885 G2phG.FindBondsDraw(data) #rebuild bonds & polygons 5886 Draw('key down') 5887 else: 5888 pass 5868 5889 5869 5890 def GetTruePosition(xy,Add=False):
Note: See TracChangeset
for help on using the changeset viewer.