Changeset 1633 for trunk/GSASIIplot.py
- Timestamp:
- Jan 22, 2015 10:09:11 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r1630 r1633 2853 2853 ccof.append(spos[0][3:]) 2854 2854 wave += G2mth.posFourier(tau,np.array(scof),np.array(ccof)) 2855 Title = MapType+' modulation map for atom '+atom[0]+ \ 2855 if mapData['Flip']: 2856 Title = 'Charge flip' 2857 else: 2858 Title = MapType 2859 Title += ' map for atom '+atom[0]+ \ 2856 2860 ' at %.4f %.4f %.4f'%(atxyz[0],atxyz[1],atxyz[2]) 2857 2861 ix = -np.array(np.rint(rhoSize[:3]*atxyz),dtype='i') … … 2873 2877 Plot.set_xlabel('t') 2874 2878 Plot.set_ylabel(r'$\mathsf{\Delta}$%s'%(Ax)) 2875 Slab = np. concatenate((slab,slab),axis=1)2876 Plot.contour(Slab ,20,extent=(0.,2.,-.5+Off*.005,.5+Off*.005))2879 Slab = np.hstack((slab,slab,slab)) 2880 Plot.contour(Slab[:,:21],20,extent=(0.,2.,-.5+Off*.005,.5+Off*.005)) 2877 2881 Page.canvas.draw() 2878 2882 … … 4032 4036 B4mat = np.concatenate((np.concatenate((Bmat,[[0],[0],[0]]),axis=1),[[0,0,0,1],]),axis=0) 4033 4037 SGData = generalData['SGData'] 4038 if generalData['Type'] in ['modulated','magnetic']: 4039 SSGData = generalData['SSGData'] 4034 4040 Mydir = generalData['Mydir'] 4035 4041 atomData = data['Atoms'] … … 4108 4114 shiftDown = False 4109 4115 ctrlDown = False 4116 G2frame.tau = 0. 4110 4117 4111 4118 def OnKeyBox(event): … … 4215 4222 SetPeakRoll(dirDict[key]) 4216 4223 SetMapPeaksText(mapPeaks) 4224 elif key in ['+','-','0'] and generalData['Type'] in ['modulated','magnetic']: 4225 if key == '0': 4226 G2frame.tau = 0. 4227 elif key =='+': 4228 G2frame.tau += 0.05 4229 elif key =='-': 4230 G2frame.tau -= 0.05 4231 G2frame.tau %= 1. #force 0-1 range 4217 4232 Draw('key') 4218 4233 … … 4991 5006 else: 4992 5007 choice = [' save as/key:','jpeg','tiff','bmp','c: center on 1/2,1/2,1/2','n: next','p: previous'] 5008 if generalData['Type'] in ['modulated','magnetic',] and len(drawAtoms): 5009 choice += ['+: increase tau','-: decrease tau','0: set tau = 0'] 5010 4993 5011 cb = wx.ComboBox(G2frame.G2plotNB.status,style=wx.CB_DROPDOWN|wx.CB_READONLY,choices=choice) 4994 5012 cb.Bind(wx.EVT_COMBOBOX, OnKeyBox)
Note: See TracChangeset
for help on using the changeset viewer.