Changeset 2177
- Timestamp:
- Mar 17, 2016 3:00:50 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIgrid.py
r2175 r2177 504 504 self.planeChoice = ['h0l','0kl','hhl','h-hl',] 505 505 self.lmax = '2' 506 self.lmaxChoice = [ '1','2','3','4','5',]506 self.lmaxChoice = [str(i+1) for i in range(6)] 507 507 self.mult = '2' 508 self.multChoice = [ '1','2','3','4','5','6','7','8','9',]508 self.multChoice = [str(i+1) for i in range(15)] 509 509 self.Draw() 510 510 … … 578 578 return '0\n0\n4\n1\n%d\n%d\n16\n1\n%d\n0\nend\n'% \ 579 579 (self.planeChoice.index(self.plane)+1,self.lmaxChoice.index(self.lmax)+1, 580 self.multChoice.index(self.mult)+1),self.plane 580 self.multChoice.index(self.mult)+1),self.plane,self.lmax 581 581 582 582 def OnOk(self,event): -
trunk/GSASIIphsGUI.py
r2176 r2177 2425 2425 import pylab as pl 2426 2426 labels = Layers['Sadp']['Plane'] 2427 pl.imshow(Layers['Sadp']['Img'],aspect='equal') 2427 lmax = float(Layers['Sadp']['Lmax']) 2428 pl.imshow(Layers['Sadp']['Img'],aspect='auto',extent=[-lmax,lmax,-lmax,lmax]) 2428 2429 pl.ylabel(labels[-1]) 2429 2430 pl.xlabel(labels[:-1]) … … 2880 2881 dlg = G2gd.DIFFaXcontrols(G2frame,ctrls) 2881 2882 if dlg.ShowModal() == wx.ID_OK: 2882 ctrls,plane = dlg.GetSelection()2883 ctrls,plane,lmax = dlg.GetSelection() 2883 2884 data['Layers']['Sadp'] = {} 2884 2885 data['Layers']['Sadp']['Plane'] = plane 2886 data['Layers']['Sadp']['Lmax'] = lmax 2885 2887 else: 2886 2888 return
Note: See TracChangeset
for help on using the changeset viewer.