Changeset d9150d8 in sasview for src/sas/qtgui/Plotting


Ignore:
Timestamp:
Jul 10, 2018 4:03:11 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
4dd5766
Parents:
515c23df
git-author:
Piotr Rozyczko <rozyczko@…> (07/10/18 03:57:36)
git-committer:
Piotr Rozyczko <rozyczko@…> (07/10/18 04:03:11)
Message:

Delete open plots on data removal SASVIEW-958

Location:
src/sas/qtgui/Plotting
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Masks/SectorMask.py

    r05fa132 rd9150d8  
    44import numpy as np 
    55 
    6 from qtgui.Plotting.Slicers.BaseInteractor import BaseInteractor 
    7 from qtgui.Plotting.Slicers.SectorSlicer import SideInteractor 
    8 from qtgui.Plotting.Slicers.SectorSlicer import LineInteractor 
     6from sas.qtgui.Plotting.Slicers.BaseInteractor import BaseInteractor 
     7from sas.qtgui.Plotting.Slicers.SectorSlicer import SideInteractor 
     8from sas.qtgui.Plotting.Slicers.SectorSlicer import LineInteractor 
    99 
    1010class SectorMask(BaseInteractor): 
  • src/sas/qtgui/Plotting/Plotter2D.py

    re20870bc rd9150d8  
    8585        self.yLabel = "%s(%s)"%(data._yaxis, data._yunit) 
    8686        self.title(title=data.title) 
    87  
    88     @property 
    89     def item(self): 
    90         ''' getter for this plot's QStandardItem ''' 
    91         return self._item 
    92  
    93     @item.setter 
    94     def item(self, item=None): 
    95         ''' setter for this plot's QStandardItem ''' 
    96         self._item = item 
    9787 
    9888    def plot(self, data=None, marker=None, show_colorbar=True): 
  • src/sas/qtgui/Plotting/PlotterBase.py

    re30646ab rd9150d8  
    133133 
    134134    @property 
     135    def item(self): 
     136        ''' getter for this plot's QStandardItem ''' 
     137        return self._item 
     138 
     139    @item.setter 
     140    def item(self, item=None): 
     141        ''' setter for this plot's QStandardItem ''' 
     142        self._item = item 
     143 
     144    @property 
    135145    def xLabel(self, xlabel=""): 
    136146        """ x-label setter """ 
Note: See TracChangeset for help on using the changeset viewer.