Ignore:
Timestamp:
Jul 30, 2016 4:22:07 PM (8 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
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
Message:

More context menu functionality in Data Explorer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Invariant/InvariantPerspective.py

    r8cb6cd6 r28a84e9  
    1717from UI.TabbedInvariantUI import tabbedInvariantUI 
    1818from InvariantDetails import DetailsDialog 
    19 from Plotter import Plotter 
    2019from InvariantUtils import WIDGETS 
    2120 
     
    5857        self._helpView = QtWebKit.QWebView() 
    5958        self.detailsDialog = DetailsDialog(self) 
    60         # self._plotter = Plotter(self) 
    6159 
    6260        self._low_extrapolate = False 
     
    6563        self._high_extrapolate = False 
    6664        self._high_power_value  = False 
     65 
     66        # No reason to have this widget resizable 
     67        self.setFixedSize(422, 400) 
    6768 
    6869        self.communicate = GuiUtils.Communicate() 
     
    159160        """ 
    160161        """ 
    161         self._plotter = Plotter(self) 
    162         if self._low_extrapolate or self._high_extrapolate: 
    163             self._plotter.show() 
    164162        self.model = model 
    165163        self.mapper.toFirst() 
     
    236234            self.model.setItem(WIDGETS.W_VOLUME_FRACTION_ERR, item) 
    237235        try: 
    238             surface, surface_error                 = \ 
     236            surface, surface_error = \ 
    239237                inv.get_surface_with_error(self._contrast, self._porod) 
    240238        except Exception as ex: 
     
    251249            return self.model 
    252250 
    253         self._plotter.clean() 
    254         self._plotter.x_label("Q(A$^{-1}$)") 
    255         self._plotter.y_label("Intensity(cm$^{-1}$)") 
    256  
    257251        if self._low_extrapolate: 
    258252            # for presentation in InvariantDetails 
     
    266260            # Plot the chart 
    267261            title = "Low-Q extrapolation" 
    268             self._plotter.data(extrapolated_data) 
    269             self._plotter.title(title) 
    270             self._plotter.plot() 
    271262 
    272263            # Convert the data into plottable 
     
    295286            # Plot the chart 
    296287            title = "High-Q extrapolation" 
    297             self._plotter.data(high_out_data) 
    298             self._plotter.title(title) 
    299             self._plotter.plot() 
    300288 
    301289            # Add the plot to the model item 
Note: See TracChangeset for help on using the changeset viewer.