Changeset 51 for trunk/GSASIIgrid.py
- Timestamp:
- Apr 22, 2010 3:17:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIgrid.py
r50 r51 20 20 ] = [wx.NewId() for _init_coll_Atom_Items in range(2)] 21 21 22 [ wxID_IMCALIBRATE, wxID_IMINTEGRATE, wxID_IMCLEARCALIB, wxID_IMREFRESHTA,23 ] = [wx.NewId() for _init_coll_IMAGE_Items in range( 4)]22 [ wxID_IMCALIBRATE, wxID_IMINTEGRATE, wxID_IMCLEARCALIB, 23 ] = [wx.NewId() for _init_coll_IMAGE_Items in range(3)] 24 24 25 25 [ wxID_UNDO,wxID_PEAKFIT,wxID_AUTOPEAKFIT, … … 54 54 parent.Append(help='',id=wxID_IMCLEARCALIB, kind=wx.ITEM_NORMAL,text='Clear calibration') 55 55 parent.Append(help='',id=wxID_IMINTEGRATE, kind=wx.ITEM_NORMAL,text='Integrate') 56 parent.Append(help='',id=wxID_IMREFRESHTA, kind=wx.ITEM_NORMAL,text='Refresh transformed image')57 56 58 57 … … 1112 1111 def OnNewColorBar(event): 1113 1112 data['color'] = colSel.GetValue() 1114 G2plt.Plot Image(self)1113 G2plt.PlotExposedImage(self) 1115 1114 1116 1115 def OnNewCalibrant(event): … … 1124 1123 delt = data['range'][0][1]-data['range'][0][0] 1125 1124 data['range'][1][1] = int((imax/100.)*delt)+data['range'][0][0] 1126 G2plt.Plot Image(self)1125 G2plt.PlotExposedImage(self) 1127 1126 1128 1127 def OnMinSlider(event): … … 1130 1129 delt = data['range'][1][1]-data['range'][0][0] 1131 1130 data['range'][1][0] = int((imin/100.)*delt)+data['range'][0][0] 1132 G2plt.Plot Image(self)1131 G2plt.PlotExposedImage(self) 1133 1132 1134 1133 def OnNumOutChans(event): … … 1175 1174 else: 1176 1175 data['showLines'] = True 1177 G2plt.Plot Image(self)1176 G2plt.PlotExposedImage(self) 1178 1177 1179 1178 def OnFullIntegrate(event): … … 1186 1185 self.Lazim.SetEditable(False) 1187 1186 self.Razim.SetEditable(False) 1188 G2plt.Plot Image(self)1187 G2plt.PlotExposedImage(self) 1189 1188 1190 1189 def OnSetDefault(event): … … 1205 1204 self.InnerTth.SetValue("%8.2f" % (Ltth)) 1206 1205 self.OuterTth.SetValue("%8.2f" % (Utth)) 1207 G2plt.Plot Image(self)1206 G2plt.PlotExposedImage(self) 1208 1207 1209 1208 def OnLRazim(event): … … 1211 1210 Razm = int(self.Razim.GetValue()) 1212 1211 data['LRazimuth'] = [Lazm,Razm] 1213 G2plt.Plot Image(self)1212 G2plt.PlotExposedImage(self) 1214 1213 1215 1214 def OnSetRings(event): … … 1253 1252 G2cmp.ImageIntegrate(self,data) 1254 1253 1255 def OnRefreshTA(event):1256 G2plt.PlotTRImage(self)1257 1258 1254 colorList = [m for m in mpl.cm.datad.keys() if not m.endswith("_r")] 1259 1255 calList = [m for m in calFile.Calibrants.keys()] … … 1265 1261 self.dataFrame.Bind(wx.EVT_MENU, OnClearCalib, id=wxID_IMCLEARCALIB) 1266 1262 self.dataFrame.Bind(wx.EVT_MENU, OnIntegrate, id=wxID_IMINTEGRATE) 1267 self.dataFrame.Bind(wx.EVT_MENU, OnRefreshTA, id=wxID_IMREFRESHTA)1268 1263 self.dataDisplay = wx.Panel(self.dataFrame) 1269 1264 mainSizer = wx.BoxSizer(wx.VERTICAL)
Note: See TracChangeset
for help on using the changeset viewer.