Changeset ff8cb73 in sasview
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Corfunc/CorfuncPerspective.py
re958531 rff8cb73 67 67 self.draw() 68 68 69 def draw RealSpace(self):69 def draw_real_space(self): 70 70 self.fig.clf() 71 71 … … 75 75 76 76 if self.data: 77 self.axes.plot(self.data.x, self.data.y) 78 self.axes.set_xlim(min(self.data.x), max(self.data.x)/4) 77 self.axes.plot(self.data.x, self.data.y, label="1D Correlation") 78 self.axes.plot(self.data3.x, self.data3.y, label="3D Correlation") 79 self.axes.plot(self.data_idf.x, self.data_idf.y, label="Interface Distribution Function") 80 self.axes.set_xlim(min(self.data.x), max(self.data.x) / 4) 81 self.axes.legend() 79 82 80 83 self.draw() … … 188 191 pass 189 192 190 def completefn(transform): 191 self._realplot.data = transform 192 self._realplot.drawRealSpace() 193 params = self._calculator.extract_parameters(transform) 194 self.model.setItem(W.W_CORETHICK, QtGui.QStandardItem(str(params['d0']))) 195 self.model.setItem(W.W_INTTHICK, QtGui.QStandardItem(str(params['dtr']))) 196 self.model.setItem(W.W_HARDBLOCK, QtGui.QStandardItem(str(params['Lc']))) 197 self.model.setItem(W.W_CRYSTAL, QtGui.QStandardItem(str(params['fill']))) 198 self.model.setItem(W.W_POLY, QtGui.QStandardItem(str(params['A']))) 199 self.model.setItem(W.W_PERIOD, QtGui.QStandardItem(str(params['max']))) 193 def completefn(transforms): 194 (trans1, trans3, idf) = transforms 195 self._realplot.data = trans1 196 self._realplot.data3 = trans3 197 self._realplot.data_idf = idf 198 self._realplot.draw_real_space() 199 params = self._calculator.extract_parameters(trans1) 200 self.model.setItem(W.W_CORETHICK, 201 QtGui.QStandardItem(str(params['d0']))) 202 self.model.setItem(W.W_INTTHICK, 203 QtGui.QStandardItem(str(params['dtr']))) 204 self.model.setItem(W.W_HARDBLOCK, 205 QtGui.QStandardItem(str(params['Lc']))) 206 self.model.setItem(W.W_CRYSTAL, 207 QtGui.QStandardItem(str(params['fill']))) 208 self.model.setItem(W.W_POLY, 209 QtGui.QStandardItem(str(params['A']))) 210 self.model.setItem(W.W_PERIOD, 211 QtGui.QStandardItem(str(params['max']))) 200 212 201 213 self._update_calculator()
Note: See TracChangeset
for help on using the changeset viewer.