Changeset 28a84e9 in sasview for src/sas/qtgui/Perspectives/Invariant
- Timestamp:
- Jul 30, 2016 4:22:07 PM (8 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 39551a68
- Parents:
- 4b71e91
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Invariant/InvariantPerspective.py
r8cb6cd6 r28a84e9 17 17 from UI.TabbedInvariantUI import tabbedInvariantUI 18 18 from InvariantDetails import DetailsDialog 19 from Plotter import Plotter20 19 from InvariantUtils import WIDGETS 21 20 … … 58 57 self._helpView = QtWebKit.QWebView() 59 58 self.detailsDialog = DetailsDialog(self) 60 # self._plotter = Plotter(self)61 59 62 60 self._low_extrapolate = False … … 65 63 self._high_extrapolate = False 66 64 self._high_power_value = False 65 66 # No reason to have this widget resizable 67 self.setFixedSize(422, 400) 67 68 68 69 self.communicate = GuiUtils.Communicate() … … 159 160 """ 160 161 """ 161 self._plotter = Plotter(self)162 if self._low_extrapolate or self._high_extrapolate:163 self._plotter.show()164 162 self.model = model 165 163 self.mapper.toFirst() … … 236 234 self.model.setItem(WIDGETS.W_VOLUME_FRACTION_ERR, item) 237 235 try: 238 surface, surface_error 236 surface, surface_error = \ 239 237 inv.get_surface_with_error(self._contrast, self._porod) 240 238 except Exception as ex: … … 251 249 return self.model 252 250 253 self._plotter.clean()254 self._plotter.x_label("Q(A$^{-1}$)")255 self._plotter.y_label("Intensity(cm$^{-1}$)")256 257 251 if self._low_extrapolate: 258 252 # for presentation in InvariantDetails … … 266 260 # Plot the chart 267 261 title = "Low-Q extrapolation" 268 self._plotter.data(extrapolated_data)269 self._plotter.title(title)270 self._plotter.plot()271 262 272 263 # Convert the data into plottable … … 295 286 # Plot the chart 296 287 title = "High-Q extrapolation" 297 self._plotter.data(high_out_data)298 self._plotter.title(title)299 self._plotter.plot()300 288 301 289 # Add the plot to the model item
Note: See TracChangeset
for help on using the changeset viewer.